Electric machine, in particular a three-phase motor, comprising a stator or a rotor as the active component, wherein the active component has a laminated core and a coil winding, wherein the laminated core has grooves that extend in the rotor-axis direction, each having a rectangular or square groove cross section, wherein the winding has winding-wire portions and is made from profiled wire having a rectangular or square wire cross section, and in each groove there are guided a number of winding-wire portions arranged in a manner radially stacked one on top of the other in the groove, wherein four winding-wire portions are guided in parallel in bundles, i.e. physically extend in the same direction, wherein the winding is a wave winding in the form of a double-layer winding, in each of which four winding-wire portions (X1, X2, Y1, Y2) are installed together as a bundle, wherein each bundle is held together by adhesive-tape rings acting as retaining means, wherein the retaining means are regularly spaced apart from one another in the winding-wire direction, and the bundle is arranged alternately in a lower groove position in one groove and in an upper groove position in a groove spaced apart therefrom in the circumferential direction, wherein each winding-wire portion in each case passes alternately through two identical stacking positions multiple times in succession, wherein the bundle is configured as a turn, i.e. a loop, of the winding around the rotor axis, wherein an individual bundle extends over the entire loop and all the grooves of the active component are occupied with winding-wire portions by the sum of all the bundles, wherein the winding-wire portions of a bundle are electrically connected to winding-wire portions of an adjoining bundle by welded, soldered or crimped connections, and the resulting sequences wired electrically in series in each case pass through different stacking positions upstream and downstream of the connection site, wherein a winding-wire portion sequence wired electrically in series passes through each stacking position the same number of times. wherein the active component has a laminated core and a coil winding, wherein the laminated core has grooves that extend in the rotor-axis direction, each having a rectangular or square groove cross section, wherein the winding has winding-wire portions and is made from profiled wire having a rectangular or square wire cross section, and in each groove there are guided a number of winding-wire portions arranged in a manner radially stacked one on top of the other in the groove, wherein four winding-wire portions are guided in parallel in bundles, i.e. physically extend in the same direction, wherein the winding is a wave winding in the form of a double-layer winding, in each of which four winding-wire portions (X1, X2, Y1, Y2) are installed together as a bundle, wherein each bundle is held together by adhesive-tape rings acting as retaining means, wherein the retaining means are regularly spaced apart from one another in the winding-wire direction, and the bundle is arranged alternately in a lower groove position in one groove and in an upper groove position in a groove spaced apart therefrom in the circumferential direction, wherein each winding-wire portion in each case passes alternately through two identical stacking positions multiple times in succession, wherein the bundle is configured as a turn, i.e. a loop, of the winding around the rotor axis, wherein an individual bundle extends over the entire loop and all the grooves of the active component are occupied with winding-wire portions by the sum of all the bundles, wherein the winding-wire portions of a bundle are electrically connected to winding-wire portions of an adjoining bundle by welded, soldered or crimped connections, and the resulting sequences wired electrically in series in each case pass through different stacking positions upstream and downstream of the connection site, wherein a winding-wire portion sequence wired electrically in series passes through each stacking position the same number of times.