After completing The Local Guardsman, the initial quest teaching you how to use guards, you'll be allowed to station guards within any liberated town in Unicorn Overlord. It might not seem like setting up a guard will be an important aspect of the game, but it can actually be quite useful if you know what to do.