# Closing a Loan

Repay your loan at any time before the loan duration expires to avoid liquidation:

Navigate to the Single NFT page by clicking the NFT row in “My NFTs”

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

**Calculate Repayment:** Ensure you have the principal amount plus the accrued interest.

**Repay Loan:** Send the repayment amount to the escrow contract by clicking Repay. This will transfer the amount due (principal + interest) and withdraw your NFT.

Similar to the listing process, you can select several NFTs and repay and withdraw them simultaneously. From the “My NFTs” tab, select the NFTs you want to repay and click “Repay and Withdraw” in the action bar. This is particularly useful for large NFT holders who need to act on multiple NFTs at once.


---

# 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://docs.jpegd.io/jpegd-dao/peer-2-peer-lending/for-borrowers/closing-a-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.
