If you buy a term life policy it will pay the amount you have set within the duration you set.
For example, you might decide to set up a policy to pay £500,000 to your 75th birthday, so you would only pay monthly premiums to your 75th birthday and it would not cover you beyond this date.