We analyze the value proposition and limitations of decentralized finance (DeFi). Based on a distributed ledger and smart contracts, DeFi can guarantee the execution of financial contracts, potentially lowering the costs of intermediation and improving financial inclusion.