A decentralized exchange (DEX) is a peer-to-peer marketplace where users can trade crypto assets without an intermediary to facilitate the transfer and custody of funds.