A switch only works in a single network. A router can connect different networks and transfer data across them. A router can often work as a switch, but a switch can not transfer data across multiple networks.