A domain name and web hosting are two separate things, and you need both to have a website.
A domain name is the address people type to reach you, such as example.co.uk. It is rented from a
registrar for a period, from one year up to ten, and renewed before it expires. Its job is to send
visitors and email to the right place, using DNS: see How DNS works.
Web hosting is space on a server that stores your website's files and serves them to visitors. It also provides email for your domain.
A domain name is your address. Hosting is the land and building at that address, where everything is kept. You can change one without the other: you can keep your domain and move your website to a new host, or the other way round.
Related: Registering a domain, Transferring a domain to us, Moving your website to us.