: A hub is a device that connects multiple devices in a network and broadcasts data to all connected devices. A switch, on the other hand, intelligently directs data to the intended device based on its MAC address, which increases network efficiency.