An electromagnetic relay comprising: a main body including: an inner cover; an electromagnet having a first terminal extending toward the outside from a bottom surface of the inner cover, the electromagnet being housed in the inner cover; and a contact portion (67, 68, 69, 70) configured to open and close according to a magnetic attractive force of the electromagnet, and to have a second terminal (68a, 70a) extending toward the outside from the bottom surface of the inner cover, the contact portion (67, 68, 69, 70) being housed in the inner cover; a cable line drawn out to the outside of the electromagnetic relay; charcterized in that the electromagnetic relay further comprises: a printed circuit board configured to fix the cable line to at least one of the first terminal and the second terminal (68a, 70a) by dip soldering, and to electrically connect the cable line to the at least one of the first terminal and the second terminal (68a, 70a); an upper cover configured to be placed on an upper surface of the main body; and an outer cover configured to house the main body, the cable line, and the printed circuit board, and to be fixed to the upper cover. a main body including: an inner cover; an electromagnet having a first terminal extending toward the outside from a bottom surface of the inner cover, the electromagnet being housed in the inner cover; and a contact portion (67, 68, 69, 70) configured to open and close according to a magnetic attractive force of the electromagnet, and to have a second terminal (68a, 70a) extending toward the outside from the bottom surface of the inner cover, the contact portion (67, 68, 69, 70) being housed in the inner cover; an inner cover; an electromagnet having a first terminal extending toward the outside from a bottom surface of the inner cover, the electromagnet being housed in the inner cover; and a contact portion (67, 68, 69, 70) configured to open and close according to a magnetic attractive force of the electromagnet, and to have a second terminal (68a, 70a) extending toward the outside from the bottom surface of the inner cover, the contact portion (67, 68, 69, 70) being housed in the inner cover; a cable line drawn out to the outside of the electromagnetic relay; charcterized in that the electromagnetic relay further comprises: a printed circuit board configured to fix the cable line to at least one of the first terminal and the second terminal (68a, 70a) by dip soldering, and to electrically connect the cable line to the at least one of the first terminal and the second terminal (68a, 70a); an upper cover configured to be placed on an upper surface of the main body; and an outer cover configured to house the main body, the cable line, and the printed circuit board, and to be fixed to the upper cover. a printed circuit board configured to fix the cable line to at least one of the first terminal and the second terminal (68a, 70a) by dip soldering, and to electrically connect the cable line to the at least one of the first terminal and the second terminal (68a, 70a); an upper cover configured to be placed on an upper surface of the main body; and an outer cover configured to house the main body, the cable line, and the printed circuit board, and to be fixed to the upper cover.