There's a package called MAMP that creates an Apache / MySQL / PHP server on your Mac. The basic version is really useful for doing WordPress development on your computer, as you can do the famous "5 minute setup" in your designated server folder and use the web-based UI to set up the MySQL database as you wish. When running, your live folder gets a localhost IP address.
However, it's really not intended for commercial web server use. And it doesn't include any of the tools that a commercial web host offers (like firewalls, security scans, HTTPS / TLS, etc etc.)
In theory there are a lot of command-line tools you can install to turn a Mac into a server, but then it's on you to manage it and unless you enjoy spending time being your own IT support, it might be more cost and time efficient to outsource your WP hosting, and use MAMP strictly as your local dev hosting environment.
If you need professional WordPress hosting, there are many options out there that will be much easier.
If you are looking to host a medium to high traffic site for a business, I really like WPEngine, a company based in Austin, Texas. They kind of invented the specialty WP hosting business with custom infrastructure, really amazing support, a very easy to use dashboard/control panel for your hosting setup. Automated backup snapshots, automated updates, excellent security, and they give you a free staging server as well. It's not the cheapest, though.
For more of a personal site, if you're ok going with an option that gives you much less control but is easier to use, WordPress.com (the commercial side of the open-source WordPress organization) has really good tools, canned templates and e-commerce options, etc.
Or if you prefer to roll your own, Dreamhost or BlueHost give you decent server options. BlueHost also includes some site-builder tools for WordPress.
Speaking from experience, I would stay away from budget webhosts like GoDaddy, as they don't lock down the security aspects of a WordPress site properly (I helped more than a few people migrate off of it when their sites were hacked - old vulnerabilities in scripts let people install malware).