When a switch receives a frame with an unknown destination MAC address, it floods the frame out of all ports except the one on which it was received. This process ensures that the frame has a chance to reach its intended recipient, which may then respond and allow the switch to learn the MAC address, updating its MAC address table accordingly.