The theory of astrophysical dynamos was developed to explain the solar cycle: the observed redistribution and polarity reversals of the surface magnetic field on a timescale much shorter than the Ohmic time demands a dynamical explanation. Although alternatives involving long term storage of magnetic flux in the solar core were proposed, there is now overwhelming consensus that the solar activity cycle is the manifestation of a dynamo.