A router is a networking device that connects two or more networks and forwards data packets between them.