 In 1040, Peter of Hungary was overthrown by Samuel Aba and fled to Germany, where Henry welcomed him despite former enmities.Bretislav was now deprived of his former ally, upon which Henry prepared another campaign into Bohemia.On 15 August, almost exactly one year after his last expedition he set out once more, was victorious and signed a peace treaty with Bretislav at Regensburg.