A router is a device that allows multiple devices on a network to communicate with each other and with the internet. It directs traffic between devices and manages the flow of data. A router can also provide additional security features, such as a firewall.