The Graduate Route Visa allows students to remain in the UK and work for up to 2 years after completing their studies at Bachelors or Masters level. PhD graduates can stay for up to three years.
These durations are due to change in January 2027. For full, up to date information please see the Government website
https://www.gov.uk/graduate-visa.