A network switch is a hardware device that connects devices within a local area network (LAN) and uses MAC addresses to forward data to the correct destination. Unlike a hub, a switch reduces network collisions by sending data only to the specific device it is intended for, improving overall network efficiency and speed.