# Sandbox.Npcs.BaseNpc.Faction

```csharp
string Faction { get; set; }
```

The faction this NPC belongs to -- its identity to others: one of [Sandbox.Npcs.Factions](/api/Sandbox.Npcs.Factions) or a game's own.
Its default relationships follow from it, see [Sandbox.Npcs.BaseNpc.SetupRelationships](/api/Sandbox.Npcs.BaseNpc/SetupRelationships). Set it on the host: the NPC
then works out afresh who it likes and hates and what to do. An NPC type can override it to compute it.

Declared in [Sandbox.Npcs.BaseNpc](/api/Sandbox.Npcs.BaseNpc).
Assembly: `Sandbox.Engine`.
