Taking only optical transitions into account, there are only two ways for the atom to emit a photon and get back into the ground state: stimulated emission and spontaneous emission.
In stimulated emission the transition back into the ground state is triggered by another photon of the same energy as the transition back to the ground state. The incident photon "arrives" at the atom and two photons of identical energy and direction come out. In this case the lifetime is in general rather short and depends on the external conditions as we need to shine light on the atom.
Spontaneous emission is a similar process, in which vacuum fluctuations play the role of the triggering photon. In this case the lifetime is longer. The exact value of the spontaneous emission rate is usually calculated by using Fermi's golden rule and depends mainly on the energy of the transition and the mode spectrum of the em-field. Therefore the rate of spontaneous emission can be altered by changing the spectrum of the em-field, for example by placing the atom inside a resonant cavity, which enhances spontaneous emission, which is called the Purcell-effect.
One should also note, that spontaneous emission is a phenomenon, which can only be described in terms of a quantized em-field. Classical physics and "ordinary" qm predict, that there is no spontaneous emission.