A hardware router is a device that connects to the internet and allows multiple devices on a local network to connect to the internet. It functions as a gateway between the local network and the internet, routing traffic between the two and providing a connection for devices such as computers, smartphones, and tablets. The router typically includes a built-in firewall to help protect the devices on the local network from malicious traffic.