What is the Purpose of a Stator?

In DC electrical systems the stator generates a magnetic field which allows a DC motor to operate. There is no stator needed in an AC system as it is very easy to create a magnetic field using AC.