An electromagnetic relay comprising: a housing including a base and a case that opens downward and is provided on the base, the housing having an internal space surrounded by the base and the case; a main fixed contact; a main moving contact configured to come into contact with and separate from the main fixed contact; an auxiliary fixed contact; an auxiliary moving contact configured to come into contact with and separate from the auxiliary fixed contact; a coil provided in the housing, a central axis of the coil extending in a vertical direction; an iron core disposed to be surrounded by the coil; a yoke disposed around the coil; an armature that is disposed to face an upper end of the iron core and swings in response to excitation/non-excitation of the coil; a movable part provided with the main moving contact and configured to move in response to swinging of the armature; and a partition wall that divides the internal space of the housing into a first space and a second space, wherein the main fixed contact and the main moving contact are disposed in front of the coil, the main fixed contact, the main moving contact, the auxiliary fixed contact, the auxiliary moving contact, the coil, the iron core, the yoke, the armature, the movable part, and the partition wall are provided in the internal space of the housing, the main fixed contact and the main moving contact are disposed in the first space, the auxiliary fixed contact and the auxiliary moving contact are disposed in the second space, the partition wall includes a first side wall connected to the base, a pair of second side walls connected to the base, and a pair of third side walls, when viewed from above, the first side wall is disposed between 1) the main fixed contact and the main moving contact, and 2) the coil, the iron core, the yoke, the auxiliary fixed contact, and the auxiliary moving contact, one of the pair of second side walls is connected to one end of the first side wall, another of the pair of second side walls is connected to another end of the first side wall, characterised in that one of the pair of third side walls is disposed to be adjacent to one of the pair of second side walls, another of the pair of third side walls is disposed to be adjacent to another of the pair of second side walls, the coil is surrounded by the first side wall and the pair of second side walls, and 1) each of the pair of third side walls is located laterally over a side of the auxiliary fixed contact and the auxiliary moving contact, or 2) each of the pair of third side walls is located above the upper end of the iron core. a main fixed contact; a main moving contact configured to come into contact with and separate from the main fixed contact; an auxiliary fixed contact; an auxiliary moving contact configured to come into contact with and separate from the auxiliary fixed contact; a coil provided in the housing, a central axis of the coil extending in a vertical direction; an iron core disposed to be surrounded by the coil; a yoke disposed around the coil; an armature that is disposed to face an upper end of the iron core and swings in response to excitation/non-excitation of the coil; a movable part provided with the main moving contact and configured to move in response to swinging of the armature; and a partition wall that divides the internal space of the housing into a first space and a second space, wherein the main fixed contact and the main moving contact are disposed in front of the coil, the main fixed contact, the main moving contact, the auxiliary fixed contact, the auxiliary moving contact, the coil, the iron core, the yoke, the armature, the movable part, and the partition wall are provided in the internal space of the housing, the main fixed contact and the main moving contact are disposed in the first space, the auxiliary fixed contact and the auxiliary moving contact are disposed in the second space, the partition wall includes a first side wall connected to the base, a pair of second side walls connected to the base, and a pair of third side walls, when viewed from above, the first side wall is disposed between 1) the main fixed contact and the main moving contact, and 2) the coil, the iron core, the yoke, the auxiliary fixed contact, and the auxiliary moving contact, 1) the main fixed contact and the main moving contact, and 2) the coil, the iron core, the yoke, the auxiliary fixed contact, and the auxiliary moving contact, one of the pair of second side walls is connected to one end of the first side wall, another of the pair of second side walls is connected to another end of the first side wall, characterised in that one of the pair of third side walls is disposed to be adjacent to one of the pair of second side walls, another of the pair of third side walls is disposed to be adjacent to another of the pair of second side walls, the coil is surrounded by the first side wall and the pair of second side walls, and 1) each of the pair of third side walls is located laterally over a side of the auxiliary fixed contact and the auxiliary moving contact, or 2) each of the pair of third side walls is located above the upper end of the iron core. 1) each of the pair of third side walls is located laterally over a side of the auxiliary fixed contact and the auxiliary moving contact, or 2) each of the pair of third side walls is located above the upper end of the iron core.