Method for the production of a stator or rotor for electrical machines having a distributed wave winding, the wires which are formed in a continuous wave shape to form webs introduced into the grooves of the stator or rotor and winding heads connecting respectively two adjacent webs of a wire and protruding beyond an end face of the stator or rotor, wherein the winding heads protrude from respectively two wires, assigned in pairs situated with adjacent webs in the same grooves, at opposite ends of the grooves beyond the end faces of the stator or rotor, characterised in that for the formation of two wire strands (10, 12) initially intertwined and then interwoven in each case - several coil windings are generated simultaneously by winding up n parallel wires fed out by a wire guide interspaced on a strip-shaped template rotatable about its longitudinal axis, in that - for a stator or rotor having a number, divisible by 2 n, of grooves to be occupied with the wave winding, alternatingly in a work step A, from each of the parallel wires on the template with a predetermined interspacing corresponding to the spacing of the stator or rotor grooves, in each case one web and one head portion doubled by bending with the wire length of a winding head are generated and - in a work step B the webs formed in work step A, maintaining their interspacing, together with the adjoining first end of the respectively assigned head portions, and the wire guide together with the second end of these head portions are slotted relatively to one another by a factor of n of the predetermined interspacing in a predetermined direction axially along the rotational axis of the template and thus winding heads are formed, - until, after multiple repetitions of the work steps A and B, also the webs are generated for the last n stator-grooves or rotor-grooves on the template, - and then the two individual prefabricated interwoven wire strands (10, 12) are wound over one another in an axial relative position in which in each case webs generated by corresponding parallel wires on opposite sides of the strip shaped template are brought into coincidence and subsequently, in the condition of lying upon one another, are guided as an altogether continuous wave winding into the stator-grooves or rotor-grooves in a direction perpendicular to their longitudinal extension. - several coil windings are generated simultaneously by winding up n parallel wires fed out by a wire guide interspaced on a strip-shaped template rotatable about its longitudinal axis, in that - for a stator or rotor having a number, divisible by 2 n, of grooves to be occupied with the wave winding, alternatingly in a work step A, from each of the parallel wires on the template with a predetermined interspacing corresponding to the spacing of the stator or rotor grooves, in each case one web and one head portion doubled by bending with the wire length of a winding head are generated and - in a work step B the webs formed in work step A, maintaining their interspacing, together with the adjoining first end of the respectively assigned head portions, and the wire guide together with the second end of these head portions are slotted relatively to one another by a factor of n of the predetermined interspacing in a predetermined direction axially along the rotational axis of the template and thus winding heads are formed, - until, after multiple repetitions of the work steps A and B, also the webs are generated for the last n stator-grooves or rotor-grooves on the template, - and then the two individual prefabricated interwoven wire strands (10, 12) are wound over one another in an axial relative position in which in each case webs generated by corresponding parallel wires on opposite sides of the strip shaped template are brought into coincidence and subsequently, in the condition of lying upon one another, are guided as an altogether continuous wave winding into the stator-grooves or rotor-grooves in a direction perpendicular to their longitudinal extension.