The main use of the router is to connect two or more networks and forward the data packets between networks.