The genesis of toroidal discharges