A terminal block connection structure for a rotary electric machine including a stator coil, the stator coil having a plurality of phases, the terminal block connection structure comprising: a plurality of power lines connected to the stator coil, the plurality of power lines corresponding to the plurality of phases; a connector connected to intermediate parts of the plurality of power lines, the connector being configured to integrate the plurality of power lines; a bus bar unit including a plurality of bus bars and at least one resin member (45a, 45b), the plurality of bus bars being connected to respective distal ends of the plurality of power lines, the resin member (45a, 45b) connecting the plurality of bus bars; and a terminal block configured such that the distal ends of the plurality of power lines are connected to the terminal block via the bus bar unit, the terminal block being configured to connect the plurality of power lines to a plurality of power-source lines, respectively, the plurality of bus bars each including a first plate portion and a second plate portion, the first plate portion being fixed to the terminal block, the second plate portion being bent from one end of the first plate portion, the second plate portion being configured to be connected to the distal end of the power line of a corresponding phase, wherein the connector is fitted, preferably form-fitted, to the resin member (45a, 45b) such that the resin member (45a, 45b) prevents a movement of the connector in at least one direction, wherein the resin member (45a, 45b) has a groove provided on a side face of the resin member (45a, 45b), the side face facing the connector; and the connector is configured to be fitted to the groove such that the groove prevents the movement of the connector in the at least one direction, in particular in a width direction of the connector, by walls of the groove. a plurality of power lines connected to the stator coil, the plurality of power lines corresponding to the plurality of phases; a connector connected to intermediate parts of the plurality of power lines, the connector being configured to integrate the plurality of power lines; a bus bar unit including a plurality of bus bars and at least one resin member (45a, 45b), the plurality of bus bars being connected to respective distal ends of the plurality of power lines, the resin member (45a, 45b) connecting the plurality of bus bars; and a terminal block configured such that the distal ends of the plurality of power lines are connected to the terminal block via the bus bar unit, the terminal block being configured to connect the plurality of power lines to a plurality of power-source lines, respectively, the plurality of bus bars each including a first plate portion and a second plate portion, the first plate portion being fixed to the terminal block, the second plate portion being bent from one end of the first plate portion, the second plate portion being configured to be connected to the distal end of the power line of a corresponding phase, wherein the connector is fitted, preferably form-fitted, to the resin member (45a, 45b) such that the resin member (45a, 45b) prevents a movement of the connector in at least one direction, wherein the resin member (45a, 45b) has a groove provided on a side face of the resin member (45a, 45b), the side face facing the connector; and the connector is configured to be fitted to the groove such that the groove prevents the movement of the connector in the at least one direction, in particular in a width direction of the connector, by walls of the groove.