The MacOS can separately act as a Wifi Hotspot and can share internet connectivity to devices via Wifi/Bluetooth. This is similar to the Personal Hotspot/Tethering that we normally do in our smartphones.
How to Enable Internet Sharing in your MacBook?
The settings is part of the System Preferences. Select the Apple menu on the top left corner of the screen. Select System Preferences.
Click the option Sharing. In the new section, on the left side, from the list of options, choose Internet Sharing.
See Also: 14 tasks that you tell Siri to do
On Choosing that, you will have to choose what internet connection you want to share to any device connect through which network.
The connection could be an iPhone physically connected to the Mac, Bluetooth, Wi-Fi or a Thunderbolt connection. And if you are choosing Wi-Fi, the recipient connections will be an iPhone, Bluetooth connection or Thunderbolt.
Note: You will not be able to share WiFi internet to another device through Wifi. This option is very useful when you are connected via Ethernet.
Want to add some more to it ?? Share it in your comments.