The invention relates to an electric motor having a rotor (1) and a stator (2). The invention also provides a cooling device (3) adapted for cooling the stator (2). The cooling device (3) has a cooling channel (3a) through which a coolant can flow, said channel being cast using a cast material (3b), and being disposed on the surface of the stator (2), at least in sections.