Decentralized finance, usually shortened to DeFi, is a catch-all term for financial services that run on public blockchains instead of inside banks, brokerages, or payment companies. Instead of a company holding your money and processing your requests, software running on a blockchain holds the funds and follows rules that anyone can read. If you can connect a wallet and pay the network fee, you can use the service. There is no account application, no branch, and usually no human in the loop.
The technology that makes this possible is the smart contract. A smart contract is a program deployed to a blockchain that controls assets and executes automatically when someone interacts with it. Once deployed, it runs exactly as written, and every interaction is recorded on the public ledger. A lending contract, for example, might hold deposited tokens, track who deposited what, and release collateral only when a loan is repaid. Nobody needs to approve the transaction; the code checks the conditions and either executes or rejects it.
A few categories make up most of the DeFi landscape. Decentralized exchanges let people swap one token for another without an order book matched by a company. Many use an automated market maker design, where users deposit pairs of tokens into a shared pool and a formula sets the exchange rate based on the ratio of assets in that pool. Traders swap against the pool, and the fees they pay are distributed to the people who supplied the liquidity.
Lending protocols let users deposit assets into a pool that others can borrow from. Because the system cannot check your credit or sue you, loans are typically overcollateralized: you must lock up more value than you borrow. If the value of your collateral falls too close to the value of your debt, the contract allows anyone to liquidate your position, selling the collateral to repay the loan. Interest rates in these pools usually float algorithmically based on how much of the available supply is currently borrowed.
Stablecoins are the plumbing that ties much of this together. These are tokens designed to track the value of a reference asset, most often a national currency. Some are backed by reserves held by an issuer; others are created on-chain by locking up crypto collateral in a smart contract. Because they aim to hold steady value, they serve as the unit of account for trading pairs, loans, and payments across the ecosystem.
Beyond these basics sit derivatives platforms, on-chain insurance pools, asset management strategies that automate moving funds between protocols, and oracle networks that feed outside data, such as market prices, onto the blockchain so contracts can react to the real world.
Two features distinguish DeFi from its traditional counterparts. The first is self-custody: you interact through a wallet you control, and assets move directly from that wallet into a contract rather than into a company's accounts. The second is composability, sometimes called money legos. Because all these contracts live on the same open network and can call each other, a token received for supplying liquidity in one protocol can often be used as collateral in another. Developers build new products by stacking existing ones, which is why the space moves quickly.
Those same properties create real risks. Code can contain bugs, and a flaw in a widely used contract can drain funds irreversibly, since blockchain transactions cannot be reversed. Audits reduce this risk but do not eliminate it. Oracles can be manipulated, causing contracts to act on bad price data. Liquidity providers face impermanent loss, where the value of assets withdrawn from a pool ends up lower than simply holding those assets would have been, because the pool rebalances as prices move. Borrowers face liquidation during volatile markets. Some protocols retain administrative keys that let a small group change the rules, meaning the label decentralized is a spectrum rather than a guarantee. And because entry is permissionless, outright fraudulent projects are common.
Self-custody also shifts responsibility entirely onto the user. There is no password reset and no fraud department. If a private key or seed phrase is lost or stolen, the funds are gone. Approving a malicious contract can grant it permission to move tokens out of a wallet.
The short version: DeFi rebuilds familiar financial functions — trading, lending, saving, hedging — as open software that anyone can inspect and use, trading institutional guarantees and customer support for transparency, access, and personal responsibility. Understanding which trade-off you are making is the most important part of using it.
This article is for general education only — not financial advice, and nothing here is a recommendation to buy, sell, or hold any asset. Cryptocurrency carries real risk of loss; always do your own research before making a financial decision.