A stator of a rotary electric machine, the stator comprising: a stator core; and a stator coil wound around the stator core, wherein: the stator coil includes a first segment coil and a second segment coil; a first peeled portion that is present in an end portion of the first segment coil is joined to a second peeled portion of the second segment coil by laser welding; wherein in the laser welding, a laser light is emitted from an outside of the stator coil in an axial direction of a stator to which the stator coil is assembled, characterised in that at least one recess portion is provided in a joining surface of the first peeled portion that faces the second peeled portion; wherein the joining surface includes a joining region (Ew) where the first segment coil is joined to the second segment coil, and a non-joining region (En) where the first peeled portion and the second peeled portion face each other without joining of the first segment coil and the second segment coil; and the recess portion is present in a vicinity of a joining boundary that is a boundary between the joining region (Ew) and the non-joining region (En). and in that the joining region (Ew) is located further on an outside of the stator coil than the non-joining region (En) in an axial direction of the stator, so that the material does not melt within the width of the recess portion and the stress intensity factor in the joining boundary is suppressed to a small value. a stator core; and a stator coil wound around the stator core, wherein: the stator coil includes a first segment coil and a second segment coil; a first peeled portion that is present in an end portion of the first segment coil is joined to a second peeled portion of the second segment coil by laser welding; the stator coil includes a first segment coil and a second segment coil; a first peeled portion that is present in an end portion of the first segment coil is joined to a second peeled portion of the second segment coil by laser welding; wherein in the laser welding, a laser light is emitted from an outside of the stator coil in an axial direction of a stator to which the stator coil is assembled, characterised in that at least one recess portion is provided in a joining surface of the first peeled portion that faces the second peeled portion; wherein the joining surface includes a joining region (Ew) where the first segment coil is joined to the second segment coil, and a non-joining region (En) where the first peeled portion and the second peeled portion face each other without joining of the first segment coil and the second segment coil; and a joining region (Ew) where the first segment coil is joined to the second segment coil, and a non-joining region (En) where the first peeled portion and the second peeled portion face each other without joining of the first segment coil and the second segment coil; and the recess portion is present in a vicinity of a joining boundary that is a boundary between the joining region (Ew) and the non-joining region (En). and in that the joining region (Ew) is located further on an outside of the stator coil than the non-joining region (En) in an axial direction of the stator, so that the material does not melt within the width of the recess portion and the stress intensity factor in the joining boundary is suppressed to a small value.