> ## Documentation Index
> Fetch the complete documentation index at: https://docs.theblockchainlibrary.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Flash Loan

> An uncollateralized blockchain loan that must be borrowed and repaid within the same atomic transaction.

# Flash Loan

An uncollateralized blockchain loan that must be borrowed and repaid within the same atomic transaction.

## Definition

An uncollateralized blockchain loan that must be borrowed and repaid within the same atomic transaction.

## Why it matters

DeFi concepts explain blockchain-based markets, lending, trading, liquidity, and financial automation.

## How it works

The user triggers a smart contract function that requests a flash loan. The contract sends the funds to the user's smart contract, which then performs operations like arbitrage. At the end of the script, the contract checks if the borrowed amount plus fees are returned. If not, the transaction fails.

## Real-world example

Aave Flash Loans, used frequently for arbitrage and liquidations.

## Advantages

* Zero collateral required
* High capital efficiency
* Enables advanced strategies

## Limitations

* Requires advanced coding skills
* Susceptible to flash loan attacks
* High gas costs

## Common misconceptions

* People think flash loans are for everyone, not just programmers.
* Many believe they can run away with the borrowed funds.

## Related knowledge

* [Smart Contract](/generated/v2/glossary/smart-contract) — term

***

**Canonical knowledge ID:** `glossary:flash-loan`
