In Dungeons & Dragons 5th Edition, a guard provides essential law enforcement and protection within urban settings. As low-level NPCs, guards help enforce rules, defend against threats, and serve as a common obstacle or ally for adventurers. Their backgrounds often include local lore, making them interactive elements in storytelling.