Under the Merovingian dynasty, the mayor of the palace or majordomo, (Latin: maior palatii or maior domus) was the manager of the household of the Frankish king. He was the head of the Merovingian administrative ladder and orchestrated the operation of the entire court. He was appointed by the king from among the magnates, the most powerful families. Austrasia, Neustria and Burgundy had their own mayor of the palace. After Chlothar II, who ruled over the entire Frankish Kingdom, had ordered the execution of Warnachar, the mayor of Burgundy, the magnates of Burgundy declared in 626 not to want their own mayor anymore. This declaration marks the effective end of the Burgundian court and the beginning of the Neustrian-Burgundian political alliance against Austrasian influence. The Austrasian magnates revolted and the Battle of Tertry of 687 became the Austrasian victory with Pepin of Herstal as their leader and the new mayor of the palace.