Decentralized finance is a financial ecosystem built on blockchains, using smart contracts to offer services such as lending, borrowing, and cryptocurrency exchange without centralized intermediaries.