How long are leases granted for?
Most leases are granted for either 99 or 125 years.
Most lenders will not provide a mortgage on a lease that has less than 80 years remaining. So, you should look at extending your lease before this point.
If the years on the lease run out, the property would return to freeholder.