The CDP contract is the feature that makes Maker an autonomous system. These contracts are launched when you send ERC-20 tokens to the Maker protocol in exchange for DAI stablecoins. The tokens you send are locked in the CDP smart contracts, and you will receive the DAI corresponding to the locked amount. The smart contracts release the collateralised assets automatically once the loan has been repaid.