Town Masters can level up by completing your crafting or merging orders.
 
Same as warriors and Barracks, a Master’s level is limited by their building’s level. Once they reach the cap, it’s time to upgrade their building. For instance, each new level for the Mine pushes the cap for its Master by 2-3 levels.