A MAC address is a hardware identifier assigned to a network interface, used for local communication. An IP address is a logical identifier assigned to devices for communication across different networks and the internet.