A router is a networking device that connects multiple computer networks together and directs data packets between them. It operates at the network layer (Layer 3) of the OSI (Open Systems Interconnection) model and is a crucial component in the functioning of the internet and most local area networks (LANs). Routers determine the best path for data to travel from one network to another, making decisions based on routing tables and network protocols.
Or at home, the device that connects your devices to the internet is a router.