© 2018 The Author(s). Published by Oxford University Press on behalf of the Royal Astronomical Society. Rotation and magnetism are increasingly recognized as important phenomena in stellar evolution. Surface magnetic fields from a few to 20 000G have been observed and models have suggested that magnetohydrodynamic transport of angular momentum and chemical composition could explain the peculiar composition of some stars. Stellar remnants such as white dwarfs have been observed with fields from a few to more than 109 G. We investigate the origin of and the evolution, on thermal and nuclear rather than dynamical time-scales, of an averaged large-scale magnetic field throughout a star's life and its coupling to stellar rotation. Large-scale ma...