To simply put it, a domain name registrar is a service that allows you to officially register your desired website domain name so that it is unique to you, and no one else can own it. Originally, there was just one company that could register your domain name for you, but now there are literally hundreds.
Legitimate domain name registrars are accredited by the Internet Corporation for Assigned Names and Numbers (ICANN). ICANN is a private, non-profit corporation that has been given the responsibility of allocating IP addresses and managing the Domain Name System. The Domain Name System is what allows you to reach a website by typing in its name, rather than its numerical IP address.
Do I have to work directly with a domain name registrar?
No. Although you can register your domain name directly with a dedicated domain name registrar, many web hosting providers, such as Freeservers.com, can register your domain as part of their web hosting package. This is often a more economical option than registering your domain name independently and then choosing a web hosting company, as that often involves a transfer fee.