The player's towns serve many functions, but most importantly they allow recruitment of creatures to form armies. Towns also provide funds, new spells and a fortified location to make a last stand against an invading enemy hero.
The eight different castles available in Heroes III are classified as good, evil, and neutral.