Electric machine having: a shaft; a rotor with permanent magnets that is fitted to the shaft; a stator having a magnetic core which consists of a series of laminations made of ferromagnetic material and longitudinally crossed by a plurality of stator slots; and a stator winding having a plurality of rigid bars that are inserted in corresponding stator slots and that are covered, on the outside, with an insulating coating. The rotor has a plurality of magnetic elements, which are arranged beside one another around the rotation axis so as to form a closed ring. Each magnetic element is formed by a plurality of permanent magnets which are axially arranged one after the other according to a Halbach array.