Your website is just a collection of different files and media elements, like photos. So, you rent a space on a web server and store all of your files there.
Your web host will also provide you with things like server maintenance, support, email accounts, and lot more. They’ll also provide you with tools that allow you to easily manage your server, even without technical skills.
Once you’ve purchased hosting, uploaded your site’s files to the web server, and pointed your domain name towards your hosting account, you’ll have a website accessible to anyone in the world.