A router is a networking device that connects multiple networks and directs data traffic between them. It receives data packets from one network and forwards them to their destination using the most efficient route. Routers are commonly used to connect local networks (LANs) to the internet and often include security features like firewalls.