high voltage applied across mercury vapour accelerates fast moving free electrons which collide with the mercury atoms, mercury electrons are excited and then return to the ground state, releasing a uv photon, the tube's phosphorus coating absorbs the uv photons and its electrons are excited, they cascade down the energy levels and emit visible light photons.