A decentralized exchange (DEX) is a type of cryptocurrency exchange that operates without a central authority, allowing users to trade directly with one another in a peer-to-peer manner. Transactions on a DEX are facilitated through smart contracts on a blockchain, providing greater security and privacy compared to centralized exchanges.