You must fulfil the appropriate length of stay requirements, as well as pass the Life in the UK Test in order to attain ILR.
You can only apply for ILR while you are in the UK, and must remain in the country while your application is being considered.
If you leave the country for a continuous period of two years or more, you will usually lose your status as being present and settled. This may result in your ILR status being revoked.
Want to know your visa and nationality status? Take our quick visa assessment to see if you qualify for ILR.