A network switch is a device that connects multiple computers and other network devices within a single network, such as a local area network (LAN). It acts as a central hub, but unlike a simple hub that broadcasts data to all connected devices, a switch is intelligent. It learns the Media Access Control (MAC) address of each device and creates a table that maps each address to a specific port.