If you want to buy a domain name that no one else has registered before, that is very easy — just use any reputable domain name registrar.
If you are trying to purchase a domain name that has already been registered, you can do that as well. It can be a little more complicated than purchasing new registrations, though. Check out our in-depth guide to aftermarket domain purchasing for details.