You are required to reside in the UK with an indefinite leave to remain for a minimum of 5 years before applying for UK citizenship.