A stator of a rotating electrical machine comprising: a plurality of stator cores which have a plurality of slots in a circumferential direction and are annularly arranged; a stator winding attached to the slots of said stator cores; and a shell that retains said stator core, said stator winding being composed of a plurality of coils, each coil being formed by winding a conductive wire which is insulation-covered and continuous with no connection part; each coil being provided with terminal wires (19, 20) which are each protruded toward one side of a coil end from an inner circumferential end and an outer circumferential end; end parts on one side of the terminal wires (19, 20) of the plurality of coils, being connected; the coil being arranged in plural layers in each slot; and the terminal wires (19, 20) being arranged at a predetermined angle pitch over the whole circumference of said stator, wherein ends of terminal wires (19, 20) protruded from an innermost circumferential side and an outermost circumferential side of each slot are oriented in an axial direction of said stator, and wherein side surfaces of the ends of the terminal wires (19, 20) protruded from the innermost circumferential side and the outermost circumferential side of each slot in the axial direction are brought into contact with each other above the coil end of said stator winding to form a joint part over the whole circumference of the said stator, wherein the joint part is joined by welding, and wherein an axial height of the terminal wire ends is equal over the whole circumference of said stator, characterized in that of the terminal wires (19, 20) protruded from the innermost circumferential side and the outermost circumferential side of the slot, the terminal wire on the inner circumferential side is bent at least two or more times including bending to the outer circumferential side above the coil end; or in that of the terminal wires (19, 20) protruded from the innermost circumferential side and the outermost circumferential side of the slot, the terminal wire on the outer circumferential side is bent at least two or more times including bending to the inner circumferential side above the coil end; or in that both of the terminal wires (19, 20) protruded from the innermost circumferential side and the outermost circumferential side of the slot are bent two or more times above the coil end. a plurality of stator cores which have a plurality of slots in a circumferential direction and are annularly arranged; a stator winding attached to the slots of said stator cores; and a shell that retains said stator core, said stator winding being composed of a plurality of coils, each coil being formed by winding a conductive wire which is insulation-covered and continuous with no connection part; each coil being provided with terminal wires (19, 20) which are each protruded toward one side of a coil end from an inner circumferential end and an outer circumferential end; end parts on one side of the terminal wires (19, 20) of the plurality of coils, being connected; the coil being arranged in plural layers in each slot; and the terminal wires (19, 20) being arranged at a predetermined angle pitch over the whole circumference of said stator, wherein ends of terminal wires (19, 20) protruded from an innermost circumferential side and an outermost circumferential side of each slot are oriented in an axial direction of said stator, and wherein side surfaces of the ends of the terminal wires (19, 20) protruded from the innermost circumferential side and the outermost circumferential side of each slot in the axial direction are brought into contact with each other above the coil end of said stator winding to form a joint part over the whole circumference of the said stator, wherein the joint part is joined by welding, and wherein an axial height of the terminal wire ends is equal over the whole circumference of said stator, characterized in that of the terminal wires (19, 20) protruded from the innermost circumferential side and the outermost circumferential side of the slot, the terminal wire on the inner circumferential side is bent at least two or more times including bending to the outer circumferential side above the coil end; or in that of the terminal wires (19, 20) protruded from the innermost circumferential side and the outermost circumferential side of the slot, the terminal wire on the outer circumferential side is bent at least two or more times including bending to the inner circumferential side above the coil end; or in that both of the terminal wires (19, 20) protruded from the innermost circumferential side and the outermost circumferential side of the slot are bent two or more times above the coil end.