The Address Resolution Protocol (ARP) is used to map layer-3 IP addresses to layer-2 MAC addresses. When a device on a network wants to communicate with another device, it uses ARP to find the MAC address that corresponds to the IP address it wishes to communicate with, allowing it to construct a frame for the local network.