In some cases an employer can force you to retire at a certain age - known as ‘compulsory retirement age’. If they do this they must give a good reason why, for example:
the job requires certain physical abilities (eg in the construction industry)
the job has an age limit set by law (eg the fire service)