In a fluorescent tube, a high voltage is applied which accelerates free electrons to collide with mercury vapour with enough energy to excite some of its electrons. When they de-excite, they release photons mainly in the UV range, The phosphorus fluorescent coating on the inside of the tube absorbs the UV photons, causing electrons to be exited. When these de-excite, they release visible light photons.