As mayor of Austrasia, Pepin and
Martin, the duke of
Laon, fought the Neustrian mayor
Ebroin, who had designs on all
Francia. Neustria, unlike Austrasia, had a tradition of a stronger central government. Ebroin defeated the Austrasians in the
Battle of Lucofao and came close to uniting all the Franks under his rule; however, he was assassinated in 681, the victim of a combined attack by his numerous enemies Pepin immediately made peace with his successor,
Waratton. However, Waratton's successor,
Berchar, and the Neustrian king
Theuderic III, who, since 679, was nominal king of all the Franks, made war on Austrasia. The king and his mayor were decisively defeated at the
Battle of Tertry (Textrice) in the
Vermandois in 687. Berchar and Theuderic withdrew themselves to
Paris, where Pepin followed and eventually forced on them a peace treaty with the condition that Berchar leave his office. Pepin was created mayor in all three Frankish kingdoms (Austrasia, Neustria, and Burgundy) and began calling himself
Duke and Prince of the Franks (
dux et princeps Francorum). In the ensuing quarrels, Berchar killed his mother-in-law Ansfled and fled. His wife Anstrude married Pepin's eldest son
Drogo,
Duke of Champagne, and Pepin's place in Neustria was secured. == Duke and Prince of the Franks ==