At the opening of his reign, Liutprand's chief ally among neighboring rulers was the Agilolfing Theodo I, the Frankish duke of Bavaria. Theodo I's intervention on Ansprand's behalf helped him gain the throne. Theodo had taken him in, when he and his father were temporarily expelled by Aripert II in 702, and the hospitality was later cemented with a marriage connection: Liutprand took to wife the Agilolfing Guntrud. The core of Theodo's policy was resistance to the Merovingian mayors of the palaces in their encroachments north of the Alps, concerns that did not much occupy Liutprand, and maintaining strategic control of the eastern Alpine passes in what is now the Italian Alps, which did. In the spring of 712, Theodo's son Theodebert, with Ansprand and Liutprand, attacked Lombard strongholds, and with the drowning of their fleeing rival Aripert, Ansprand's faction were back in power at Pavia.