As a prelude to discussing the interaction of magnetic fields with convection, we first review some general properties of convection in a stratified medium. Granulation, which is the surface manifestation of the major energy carrying convection scales, is a shallow phenomenon. Below the surface, the topology changes to one of filamentary cool downdrafts, immersed in a gently ascending isentropic background. The granular downflows merge into more widely separated downdrafts, on scales of mesogranulation and super-granulation.
The local topology and time evolution of the small scale, kilo Gauss, network and facular magnetic field elements are controlled by convection on the scale of granulation. The topology and time evolution of larger scale magnetic field concentrations are controlled by the hierarchical structure of the horizontal components of the large scale velocity field. In sunspots, the small scale magnetic field structure determines the energy balance, the systematic flows and the waves. Below the surface, the small scale structure of the magnetic field may change drastically, with little observable effect at the surface. We discuss results of some recent numerical simulations of sunspot magnetic fields, and some mechanisms that may be relevant in determining the topology of the sub-surface magnetic field. Finally, we discuss the role of active region magnetic fields in the global solar dynamo.