An electrical connector comprises a housing configured to be mated with a mating connector along a mating direction, a shell made of a metal material and enclosing the housing, and a slide cam made of a metal material and slidable with respect to the housing and the shell in a sliding direction perpendicular to the mating direction. The slide cam has a cam portion guiding the mating connector along the mating direction, a first elastic portion configured to be pressed against a metal region of the mating connector, and a second elastic portion integrally formed in a single piece with the cam portion and the first elastic portion and configured to be pressed against a predetermined region of the shell.