A switch is a network device that receives incoming data packets and redirects them to their destination on a local area network (LAN). It operates at the data link layer and can support all packet protocols. It reads destination information and uses it to determine the correct output port to send the data. Switches create an electronic tunnel between ports to allow communication without collisions, unlike hubs which broadcast to all ports.