We implement the theory of resonant scattering in the context of Cosmic Microwave Background (CMB) polarisation anisotropies. We compute the changes in the E-mode polarisation (EE) and Temperature E-mode (TE) CMB power spectra introduced by the scattering on a resonant transition with a given optical depth $\tau_X$ and polarisation coefficient $E_1$. The latter parameter, accounting for how anisotropic the scattering is, depends on the exchange of angular momentum in the transition and enables, {\it a priori}, to distinguish among different possible resonances. We use this formalism in two different scenarios: cosmological recombination and cosmological reionisation. In the context of cosmological recombination, we compute predictions in fr...