A connector (10, 20) connecting a conductor portion of an electric wire to a conductive portion exposed on a surface of a substrate, the connector comprising: a first insulator disposed on the surface of the substrate and having a recess portion; a second insulator disposed to be able to be fitted to the first insulator and having a protrusion portion corresponding to the recess portion; and a contact (14, 24) having conductivity and retained by both the first insulator and the second insulator, the contact (14, 24) including: a mounting potion (14A, 24A) situated at one end of the contact and mounted on the substrate; a first retained portion (14B, 24B) situated to be adjacent to the mounting portion and retained by the first insulator; a second retained portion (14C, 24C) situated at the other end of the contact and retained by the second insulator; a joint portion (14D, 24D) joining together the first retained portion and the second retained portion and being deformable; and a connection portion (14F, 24F) electrically connected to the conductive portion of the substrate, wherein the first retained portion includes a recessed bent portion (14E, 24E) that is accommodated in the recess portion and extends along an inner surface of the recess portion, the first insulator and the second insulator are fitted to each other such that the conductor portion of the electric wire is sandwiched between the recessed bent portion of the contact and the protrusion portion of the second insulator, and the conductor portion of the electric wire makes contact with the recessed bent portion between the recess portion and the protrusion portion, whereby the conductor portion of the electric wire is electrically connected to the conductive portion of the substrate via the contact. a first insulator disposed on the surface of the substrate and having a recess portion; a second insulator disposed to be able to be fitted to the first insulator and having a protrusion portion corresponding to the recess portion; and a contact (14, 24) having conductivity and retained by both the first insulator and the second insulator, the contact (14, 24) including: a mounting potion (14A, 24A) situated at one end of the contact and mounted on the substrate; a first retained portion (14B, 24B) situated to be adjacent to the mounting portion and retained by the first insulator; a second retained portion (14C, 24C) situated at the other end of the contact and retained by the second insulator; a joint portion (14D, 24D) joining together the first retained portion and the second retained portion and being deformable; and a connection portion (14F, 24F) electrically connected to the conductive portion of the substrate, a mounting potion (14A, 24A) situated at one end of the contact and mounted on the substrate; a first retained portion (14B, 24B) situated to be adjacent to the mounting portion and retained by the first insulator; a second retained portion (14C, 24C) situated at the other end of the contact and retained by the second insulator; a joint portion (14D, 24D) joining together the first retained portion and the second retained portion and being deformable; and a connection portion (14F, 24F) electrically connected to the conductive portion of the substrate, wherein the first retained portion includes a recessed bent portion (14E, 24E) that is accommodated in the recess portion and extends along an inner surface of the recess portion, the first insulator and the second insulator are fitted to each other such that the conductor portion of the electric wire is sandwiched between the recessed bent portion of the contact and the protrusion portion of the second insulator, and the conductor portion of the electric wire makes contact with the recessed bent portion between the recess portion and the protrusion portion, whereby the conductor portion of the electric wire is electrically connected to the conductive portion of the substrate via the contact.