An electric connector, comprising: a female first housing for supporting a first connection terminal (201a, 201b); a male second housing for supporting a second connection terminal (401a, 401b), the male housing being inserted into the female housing and being fitted thereto, the first connection terminal (201a, 201b) being connected to the second connection terminal (401a, 401b); and a latching member having a latch portion (315, 335) to be latched to said second housing at a spring portion (311, 331), the latching member being pressed in the fitting direction (x) at a part of the spring portion (311, 331), and extending in a direction (y) orthogonal to the fitting direction (x) of said first housing and said second housing; wherein said first housing includes a guiding groove for slidably holding said latching member in the orthogonal direction against pressing of the spring portion (311, 331) in the fitting direction in a preload-applied state and an opening for releasing the preload-applied state and causing said latching member to be operably opened toward said second housing; said second housing includes a fixing groove for receiving said latching member which is in a state where the preload is applied to the portion to which the opening is faced when said first housing is fitted; and said latching member is provided so as to slidably move to a first position where said latching member is held in the guiding groove of said first housing in the preload-applied state; and adapted to slide to a second position where said latching portion (315, 335) is shifted from said guiding groove to said fixing groove in the preload-applied state and is latched in said fixing groove, the electric connector being characterized in that said second housing includes a leading guide for leading said latching portion (315, 335) to said fixing groove, said leading guide is provided so as to be inclined in said fitting direction; and said latching member slidably moves from said first position to said second position when said second housing is inserted into and fitted to said first housing, and said latching member is provided so as to slidably move to a third position deviated from said fixing groove of said second housing. a female first housing for supporting a first connection terminal (201a, 201b); a male second housing for supporting a second connection terminal (401a, 401b), the male housing being inserted into the female housing and being fitted thereto, the first connection terminal (201a, 201b) being connected to the second connection terminal (401a, 401b); and a latching member having a latch portion (315, 335) to be latched to said second housing at a spring portion (311, 331), the latching member being pressed in the fitting direction (x) at a part of the spring portion (311, 331), and extending in a direction (y) orthogonal to the fitting direction (x) of said first housing and said second housing; wherein said first housing includes a guiding groove for slidably holding said latching member in the orthogonal direction against pressing of the spring portion (311, 331) in the fitting direction in a preload-applied state and an opening for releasing the preload-applied state and causing said latching member to be operably opened toward said second housing; said second housing includes a fixing groove for receiving said latching member which is in a state where the preload is applied to the portion to which the opening is faced when said first housing is fitted; and said latching member is provided so as to slidably move to a first position where said latching member is held in the guiding groove of said first housing in the preload-applied state; and adapted to slide to a second position where said latching portion (315, 335) is shifted from said guiding groove to said fixing groove in the preload-applied state and is latched in said fixing groove, the electric connector being said second housing includes a leading guide for leading said latching portion (315, 335) to said fixing groove, said leading guide is provided so as to be inclined in said fitting direction; and said latching member slidably moves from said first position to said second position when said second housing is inserted into and fitted to said first housing, and said latching member is provided so as to slidably move to a third position deviated from said fixing groove of said second housing.