Loans in decentralised finance use smart contracts, instead of relying on the legal system.
Code over law.