An atomic swap is a peer-to-peer exchange of cryptocurrencies between two parties without the need for a trusted third party. It allows users to swap different cryptocurrencies directly, securely, and without the risk of one party not holding up their end of the bargain.