Theoretical and experimental investigations of the nonlinear refractive index in an Erbium-doped fibre is presented. The transient response of this fibre is also examined. The switching speed can be improved by using a signal power at a wavelength close to the resonant wavelength between the excited state and the ground state.