A connector, comprising: a terminal configured to be connected to a mating terminal, and having an electric wire (61, 71) led out in a direction orthogonal to a connection direction in which the terminal is connected to the mating terminal; a housing having a cavity part (25A, 25B) configured to accommodate the terminal; and a rear holder having a terminal holding part configured to hold the terminal, wherein the terminal is configured to be accommodated in the cavity part (25A, 25B) when the rear holder is assembled to the housing; and wherein the rear holder includes a locking mechanism that locks the terminal or the electric wire (61, 71) and that maintains a state of the terminal being held in the terminal holding part, wherein the terminal has a first terminal and a second terminal; and wherein the terminal holding part has: a first terminal holding part that is provided on an assembling side of the rear holder to be assembled to the housing and has an accommodating recess part into which the first terminal is fitted; and a second terminal holding part that has an accommodating recess part into which the second terminal is fitted in a direction orthogonal to the connection direction, wherein the locking mechanism includes a first locking mechanism that locks the first terminal fitted into the first terminal holding part, and a second locking mechanism that locks the second terminal fitted into the second terminal holding part; characterized in that the first locking mechanism includes a pair of locking protrusions, which protrude towards each other and that lock the electric wire extending from the first terminal; and in that the second locking mechanism includes: a locking convex part that is engaged with a notch part provided in the second terminal in a direction orthogonal to the connection direction; and a pressing part that presses a rear part of the second terminal in a direction in which the second terminal is fitted to the accommodating recess part of the second terminal holding part. a terminal configured to be connected to a mating terminal, and having an electric wire (61, 71) led out in a direction orthogonal to a connection direction in which the terminal is connected to the mating terminal; a housing having a cavity part (25A, 25B) configured to accommodate the terminal; and a rear holder having a terminal holding part configured to hold the terminal, wherein the terminal is configured to be accommodated in the cavity part (25A, 25B) when the rear holder is assembled to the housing; and wherein the rear holder includes a locking mechanism that locks the terminal or the electric wire (61, 71) and that maintains a state of the terminal being held in the terminal holding part, wherein the terminal has a first terminal and a second terminal; and wherein the terminal holding part has: a first terminal holding part that is provided on an assembling side of the rear holder to be assembled to the housing and has an accommodating recess part into which the first terminal is fitted; and a second terminal holding part that has an accommodating recess part into which the second terminal is fitted in a direction orthogonal to the connection direction, a first terminal holding part that is provided on an assembling side of the rear holder to be assembled to the housing and has an accommodating recess part into which the first terminal is fitted; and a second terminal holding part that has an accommodating recess part into which the second terminal is fitted in a direction orthogonal to the connection direction, wherein the locking mechanism includes a first locking mechanism that locks the first terminal fitted into the first terminal holding part, and a second locking mechanism that locks the second terminal fitted into the second terminal holding part; characterized in that the first locking mechanism includes a pair of locking protrusions, which protrude towards each other and that lock the electric wire extending from the first terminal; and in that the second locking mechanism includes: a locking convex part that is engaged with a notch part provided in the second terminal in a direction orthogonal to the connection direction; and a pressing part that presses a rear part of the second terminal in a direction in which the second terminal is fitted to the accommodating recess part of the second terminal holding part. a locking convex part that is engaged with a notch part provided in the second terminal in a direction orthogonal to the connection direction; and a pressing part that presses a rear part of the second terminal in a direction in which the second terminal is fitted to the accommodating recess part of the second terminal holding part.