Each town in an area covered by a Corps Headquarters was allocated a Town Major. He was provided with orders to issue to any unit occupying the town or village for which he was responsible. Billets there would not be occupied or vacated without information being given to him.
This October 1916 order from the Headquarters of VII Corps gives a good definition of the duties and responsibilities of a Town Major.
The order is contained with the war diary of the Adjutant of the 49th (West Riding) Division, National Archives piece WO95/2770.