> For the complete documentation index, see [llms.txt](https://keep-finance.gitbook.io/keep-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://keep-finance.gitbook.io/keep-finance/keep_core/lending-pool/flash-loan.md).

# Flash Loan

The flash loan operation will allow users to borrow from reserves in a single transaction, as long as the user returns more of the liquidity that has been tied up.

The Keep protocol  implements a solution that can use Flash Loans in combination with any other features of the protocol, thus powering many new possibilities:

* Collateral trading. Change the risk from one or more collateral to another without closing the debt position.
* Repay a loan with the collateral. Use the collateral deposit in the protocol to pay down debt positions.
* Margin trading. Create margin positions that can be traded later.
* Debt swaps. Change the risk of debt from one asset to another.
* Margin deposits

<figure><img src="https://lh6.googleusercontent.com/GwmZcjHB6WQJhMf5j02op4nbZ6s1OZhl_X8IWn1Y4deQYHzt4VS4jtjrLEeQV-XlEhgCSVzSaUnwr7VxchlEBxWC8G7Ld2ixauiayhCmQkgVAP1jyfNh9-VOOTxwSivgqQOfG0RlHOLfsx-jSqx_TWf34RnKiiOat6CuigpkwkUTklemCOmL5fN9mUaG" alt=""><figcaption><p>Flash Loan</p></figcaption></figure>
