A terminal block including: a connector that has a tubular shape; and a seating that is formed on an outer periphery of the connector, and is to be fixed to the housing so as to close an opening of the housing, wherein: the seating includes: a first wall that extends in a direction that intersects an axial direction of the connector; a second wall that faces the first wall in the axial direction of the connector; a rib that is provided between the first wall and the second wall so as to connect the first wall and the second wall with each other; and a space that is partitioned by the rib between the first wall and the second wall, and the space is open in a direction that intersects the axial direction of the connector.