The terminal block in a relay module is connected to the main supply. It consists of connections for the normally open (NO), normally closed (NC), and common (COM) terminals of the relay. These connections allow for the switching of current in the relay.