An idempotency key is a unique identifier used to prevent duplicate actions in web applications, such as multiple submissions. It ensures that repeated requests for the same action result in only one processed action, which is crucial for operations like payments or bookings.