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

# Open a Margin Account

> Create your personal Stellar smart account in one signature before depositing collateral or borrowing.

You need a margin account to borrow, swap on Spot or farm. You don't need one to lend on Earn.

**1. Connect the owner wallet**

Connect the wallet that will own the account. Only this wallet can use it. See [Connect Your Wallet](https://docs.vanna.finance/stellar/guides/connect-wallet.md).

**2. Start on the Margin page**

Open **Margin**. If you don't have an account yet, the action button reads **Create your Margin Account**. Click it.

**3. Create Margin Account**

The first dialog explains the steps. Click **Create Your Account**.

**4. Review and Sign Agreement**

Read the terms (collateral requirement, borrowing limits, variable interest, liquidation risk). Tick **I have read and agree to the VANNA Borrow Agreement** and click **Sign Agreement**.

**5. Approve in your wallet**

Sign the `create_account` transaction. When it confirms, the Margin page loads your new account.

## Good to know

* **Two addresses.** Your wallet starts with **G**. Your margin account is a contract and starts with **C**. They hold separate balances.
* **Found automatically.** On reconnect, Vanna finds your account on-chain. You never need a second one.
* **Closing.** Closing is a contract operation, not a button on the Margin page. An account can't be closed in the ledger it was created in, and closing requires zero debt; it unwinds remaining positions and sends the tokens back to you. Repaying or being liquidated does not close an account by itself.

Next: [Deposit Collateral](https://docs.vanna.finance/stellar/guides/margin/deposit-collateral.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.