A router is a networking device that forwards data packets between computer networks, directing traffic on the internet by determining the best path for data transmission. It connects multiple networks, manages traffic, and ensures data packets reach their intended destination efficiently and securely.