A connector comprises a housing and a lock connected to the housing. The lock has a base extending in a mating direction, a bend extending continuously from a rear end of the base in the mating direction and formed in a U-shape, and a press-fitting protrusion extending from an end of the bend opposite the base. The bend has a bend face facing in the mating direction and is separated from the housing by a bend gap. The press-fitting protrusion is press-fitted in the housing.