A connector suitable for connecting an inverter and a motor, the connector comprising: an inverter case, wherein a part of a lower portion of the inverter case includes an inverter side rib projecting downward; an inverter side terminal block mounted on the inverter case and includes a housing mount portion where an inner housing is mounted; an inverter side terminal included in the inner housing held by the inverter side terminal block, wherein a connection portion of the inverter side terminal faces downward; a motor case having a motor side hole that is open upward wherein a part of an upper portion of the motor case includes a motor side rib projecting upwardly on an outer peripheral side of the motor side hole; a motor side terminal block including a plate-shaped main body and a projected portion projecting from a part of the main body upward and downward, the plate-shaped main body being mounted on the motor side rib, an upper portion of the projected portion being open upward and being a motor side housing, and a lower portion of the projected portion being inserted in the motor side hole of the motor case; a motor side terminal included in the motor side terminal block, having a connection end on an upper side, and being suitable for fitting to the inverter side terminal; and an elastic member arranged between the inverter side rib of the inverter case and a placing portion of the main body of the motor side terminal block to be compressed in a fitting direction in which the inverter side terminal and the motor side terminal are fit to each other, wherein the elastic member is surrounding a connection portion of the inverter side terminal and the motor side terminal and is configured to seal a space between the inverter case and the main body of the motor side terminal block, characterized in that a ring-shaped retainer is mounted in the housing mount portion from a lower opening side, and an extended portion of the inner housing is sandwiched between a support surface of the housing mount portion and the retainer so that the inner housing is supported in a floating manner with respect to the housing support surface. an inverter case, wherein a part of a lower portion of the inverter case includes an inverter side rib projecting downward; an inverter side terminal block mounted on the inverter case and includes a housing mount portion where an inner housing is mounted; an inverter side terminal included in the inner housing held by the inverter side terminal block, wherein a connection portion of the inverter side terminal faces downward; a motor case having a motor side hole that is open upward wherein a part of an upper portion of the motor case includes a motor side rib projecting upwardly on an outer peripheral side of the motor side hole; a motor side terminal block including a plate-shaped main body and a projected portion projecting from a part of the main body upward and downward, the plate-shaped main body being mounted on the motor side rib, an upper portion of the projected portion being open upward and being a motor side housing, and a lower portion of the projected portion being inserted in the motor side hole of the motor case; a motor side terminal included in the motor side terminal block, having a connection end on an upper side, and being suitable for fitting to the inverter side terminal; and an elastic member arranged between the inverter side rib of the inverter case and a placing portion of the main body of the motor side terminal block to be compressed in a fitting direction in which the inverter side terminal and the motor side terminal are fit to each other, wherein the elastic member is surrounding a connection portion of the inverter side terminal and the motor side terminal and is configured to seal a space between the inverter case and the main body of the motor side terminal block, characterized in that a ring-shaped retainer is mounted in the housing mount portion from a lower opening side, and an extended portion of the inner housing is sandwiched between a support surface of the housing mount portion and the retainer so that the inner housing is supported in a floating manner with respect to the housing support surface.