---
title: "Create a new SXA module"
slug: "create-a-new-sxa-module-1188191"
abstract: "Add an SXA module to extend one of the site items and use custom fields, or to invoke a script during site creation."
---
# Create a new SXA module

An SXA module consists of templates, branches, settings (to store scaffolding items), media library items, renderings, layouts, and so on. Default SXA modules include the rendering sections and grid systems. The modules are stored in the Feature , Foundation, or *Project* folder:

- */sitecore/System/Settings/Foundation/Headless Experience Accelerator/*.
- */sitecore/System/Settings/Feature/Headless Experience Accelerator/*.
- */sitecore/System/Settings/Project/*.

You might want to create a new module, for example, to add a base template to extend one of the site items and use custom fields, or to invoke a script during site creation.

To add a new module:

1. Navigate to *sitecore/System/Settings*, right-click *Features*, *Foundation*, or *Project*, and then click **Insert** > **Headless Module**.

    > [!note]
    > Do not place your custom modules in the Headless Experience Accelerator folder. This folder is overwritten during updates.

2. In the **Create new module** dialog box, fill in the following fields:

    | **Field** | **Description** |
    | --- | --- |
    | Module name | Enter a name for the new module. This name is used as the folder name for the system areas selected. |
    | Add to module group | Select the module folder this module belongs to. |
    | System areas | Select the system areas for which container folders should be created. |
    | Module scaffolding actions | To install the new module with scaffolding, select **Site Collection Setup** and/or **Site Setup**. |

3. Click **Proceed**.

    Your module is now added and ready for you to customize by adding templates, branches, settings (scaffolding configurations) media library items, renderings, layouts, and so on.

    Depending on which system areas you selected, there are folders in the Media Library, Templates, Branches, Renderings, Layout, or Layouts sections.

    ![New module folder available in different folders.](https://doc.sitecore.com/api/markdown-image/xp/en/developers/sxa/105/sitecore-experience-accelerator/images/5BF32F66CA934A24AF68C31F98D6BB7F.png)