Historically speaking, and leaving out the random magic and so forth, Would there be a town guard which stayed behind? If so, would it be entirely external defense or do some policing? What would the daily routine be like?
I've googled "town guard" and "watchmen" and so forth, but gotten nothing terribly useful; any hints on research would also be awesome.