DeFi (decentralised finance) is financial services — lending, borrowing, trading, saving — run by code on a blockchain instead of by a bank or broker. The programs that provide them, called smart contracts, are open to anyone with a wallet, run without a company deciding who gets in, and hold funds by rule rather than by promise. That openness is DeFi's strength and, when the code is flawed, its biggest risk.
The core idea
A traditional bank sits in the middle of your money: it holds your deposits, approves your loan, and settles your trades. DeFi replaces that middleman with public smart contracts. You keep your assets in your own self-custody wallet and interact directly with the contracts. No account application, no business hours, no one who can quietly change the terms.
Three properties define it:
- Permissionless. Anyone with a wallet can use it; there is no gatekeeper approving customers.
- Non-custodial. You hold your own keys and funds until the moment a contract moves them under rules you can read.
- Composable. Apps plug into one another like Lego, so a new service can build on existing ones without asking permission.
What you can actually do
| Service | Traditional version | DeFi version |
|---|---|---|
| Trade assets | Broker / exchange | A DEX (decentralised exchange) like Uniswap, priced by a formula |
| Earn yield | Savings account | Supplying assets to a lending pool |
| Borrow | Bank loan | Over-collateralised loan from a protocol like Aave |
| Stablecoins | Holding cash | Dollar-pegged tokens used across apps |
| Derivatives | Brokerage | On-chain perpetuals and options |
A few building blocks power most of this:
- Decentralised exchanges (DEXs). Instead of matching buyers and sellers, many use an — a pool of two tokens priced by a formula, where anyone can trade against the pool or .

