A switch can learn source MAC addresses of data frames. After learning the interface connected to the destination host, the switch sends data frames to the interface instead of broadcasting data frames to all interfaces in the VLAN.
By learning MAC addresses, a switch can obtain MAC addresses of devices on the network connected to an interface.