Level cap

Level cap, also known as Level Function, is the upper limit to how high or how much you can upgrade a building. The level cap is the same as the level of your town hall, so your town hall will always have the highest level out of any of your structures. You can raise the cap by upgrading your town hall.