# Open and Close Loan

Source: [https://docs.curve.finance/user/llamalend/guides/borrow/open-and-close](https://docs.curve.finance/user/llamalend/guides/borrow/open-and-close)

<a id="open-a-new-loan"></a>

## Open a new Loan

<a id="select-a-market"></a>

### Select a Market

The UI provides various filtering methods to find the most suitable market.

![Available lending markets](https://docs.curve.finance/assets/images/overview-light-0df0ab94a651af773f68c35ae057420c.png)![Available lending markets](https://docs.curve.finance/assets/images/overview-dark-87660a0868ba4d05f6530ae27a6400a1.png)

<a id="specify-loan-parameters"></a>

### Specify Loan Parameters

To create a loan, enter the amount of collateral you want to use and choose how much crvUSD to borrow. If its your first time creating a loan within this market, you will need to sign two transactions.

1.  approval
2.  create loan

![Loan parameters interface](https://docs.curve.finance/assets/images/open-light-b289021865dc65556098e4d0f3305ea0.png)![Loan parameters interface](https://docs.curve.finance/assets/images/open-dark-2ab3969562d2b126f83789802c0374cf.png)

The UI will provide an overview of the price range ([liquidation protection range](https://docs.curve.finance/user/llamalend/liquidation-protection/how-it-works.md)), health of the loan, borrow rate, etc.

Additionally, there is a chart which displays the price of the collateral token (blue line) and your liquidation range (orange area).

![Loan parameters interface](https://docs.curve.finance/assets/images/liquidation-range-light-7b16509fc7648dbb80e7b3c1f80d8981.png)![Loan parameters interface](https://docs.curve.finance/assets/images/liquidation-range-dark-d3d1f6cbab916136f2500dc40a03ec64.png)

<a id="view-your-position"></a>

### View Your Position

After a loan has been created, all your position details show in a single card. The "Get alerts" button on the top redirects you to a telegram bot which lets you monitor your position.

![Loan position overview](https://docs.curve.finance/assets/images/position-overview-light-d08d0e11a5a46294074b675abc6bc717.png)![Loan position overview](https://docs.curve.finance/assets/images/position-overview-dark-abd4931a7f5023b0cac2b4c3ef37111e.png)

* * *

<a id="closing-your-loan"></a>

## Closing Your Loan

To fully close your loan, you need to repay all of your debt. There are two options:

1.  Fully repay your loan
2.  Self-liquidate your loan if its in liquidation protection mode

<a id="fully-repaying"></a>

### Fully Repaying

Navigate to the "Repay" tab and select how to repay your debt. You have the following options:

-   **Repay from Collateral**: Repay your debt using your current collateral. The system will sell as much collateral as needed to repay the debt and return the remaining balance to your wallet.
-   **Repay from Wallet**: Repay your debt using assets directly from your wallet. You can use either the collateral token or the debt token.

![Close loan interface](https://docs.curve.finance/assets/images/repay-light-3e90356cf32a2a9dd5c7b6e66dcd7d4b.png)![Close loan interface](https://docs.curve.finance/assets/images/repay-dark-13a59c8353cf9e6b4445e7161a4c23c9.png)

Alternatively, you can check the "Repay in full and close loan" box for a streamlined process.

<a id="self-liquidate"></a>

### Self Liquidate

Another option to close your loan is to self-liquidate when your loan is in liquidation protection mode. This is essentially the same as repaying the full debt with crvUSD from your wallet.

![Close loan interface](https://docs.curve.finance/assets/images/self-liquidate-light-724684906ed9b5eaa25847945382c0c9.png)![Close loan interface](https://docs.curve.finance/assets/images/self-liquidate-dark-1f805b2fd7f5b61a9aba43de7591f3ba.png)
