IIRC in Warband you could "hire" patrols that dealt with local bandits and raiders, and kept the settlement's territory safe for villagers and caravans.
It would be nice to see that feature return, as bandits and looters are affecting the economy severely, and Kings/Lords shouldn't have to...