When the network stack translates an IP address (network address) to a MAC address (data link address) it sends a broadcast using ARP to all devices on the subnet asking who has the specified IP address. The device with that IP address will then respond with it's MAC address to the ARP message's source.