A decentralized exchange (DEX) is a platform that operates without a central authority, allowing users to trade cryptocurrencies directly with each other using smart contracts on a blockchain, enhancing security and reducing reliance on intermediaries.