The UK visa grants you a three-year period of stay, and after that period, you can apply to renew your stay, which can be extended for two years. After that, you can obtain permanent residency after a total of five years, as explained.