  Observations show that solar activity is distributed non-axisymmetrically,
concentrating at "preferred longitudes". This indicates the important role of
non-axisymmetric magnetic fields in the origin of solar activity. We
investigate the generation of the non-axisymmetric fields and their coupling
with axisymmetric solar magnetic field. Our kinematic generation (dynamo) model
operating in a sphere includes solar differential rotation, which approximates
the differential rotation obtained by inversion of helioseismic data, modelled
distributions of the turbulent resistivity, non-axisymmetric mean helicity, and
meridional circulation in the convection zone. We find that (1) the
non-axisymmetric modes are localised near the base of the convection zone,
where the formation of active regions starts, and at latitudes around
$30^{\circ}$; (2) the coupling of non-axisymmetric and axisymmetric modes
causes the non-axisymmetric mode to follow the solar cycle; the phase relations
between the modes are found. (3) The rate of rotation of the first
non-axisymmetric mode is close to that determined in the interplanetary space.
