# Segments

> For AI agents: a documentation index is available at [/llms.txt](/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

## What is a segment?

A segment defines a reusable set of users. You can define a segment based on common user attributes such as location, client device, browser, client application version, or user IDs.

## When to use segments

Segments are ideal for targeting a commonly identified set of users across features or dynamic configs. For example, you can create a segment representing your team members or company employees to test a new feature before launching to external users. You can also create different segments for English-speaking and Spanish-speaking countries to deliver a localized experience to each segment.

To get started, go to the Statsig guide to [create your first segment](https://docs.statsig.com/guides/first-segment).

The following tutorials show how to perform common tasks with segments.

- [Create a segment](https://docs.statsig.com/segments/create-new)
- [Create rules for a segment](https://docs.statsig.com/segments/add-rule)
- [Use a segment](https://docs.statsig.com/segments/implement)
