# Liquidate your loan

One of the great advantages Alchemix loans bring is that there is always a way to exit your position, even if you don’t have funds in your wallet to make a repayment.

The liquidate function allows you to use your deposited collateral as a source of funds to repay your debt. Alchemix loans are always overcollateralized, meaning there are always enough funds in your account to cover your debt and allow you to exit.

To liquidate the alETH loan on this account we’ll open the liquidate dialog and choose the alETH from the first drop down menu. Since our deposit was made in WETH we’ll accept the default WETH in the second drop down.

<figure><img src="/files/1KKFlnM5K5Fvmhg08cTV" alt=""><figcaption><p>Select the debt you'd like to pay off</p></figcaption></figure>

We want to liquidate all of the loan so let’s choose ‘max’ in the input box.

As alETH is pegged to ETH there will be a small discrepancy in their value. To enable users to limit the effect of any slippage you can choose your preferred slippage tolerance here.

<figure><img src="/files/aVNaSlQIHZFrLo3Omw0a" alt=""><figcaption><p>Slippage options</p></figcaption></figure>

Once you’re happy with the liquidation parameters press liquidate.

If you have any support queries, please contact our team on the official [Discord channel](https://alchemix-finance.gitbook.io/user-docs/resources)

Now that we’ve liquidated our loan, our deposit is available to withdraw so let’s look at that in the next video.

<figure><img src="/files/BdJUe7Jx8opOv6RG7Udb" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://v2-docs.alchemix.fi/resources/how-to/liquidate-your-loan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
