The Bavarian-Austrian War took place 1485-93. It was one of the many little wars in the HRE that took place during the Twenty-Year War. It was fought for Salzburg, which originally was one of the biggest territories of the church in the HRE. Finally the contrahents agreed that Bavaria could annex Salzburg, but had to give Eastern Styria in return to Austria. The war weakened both parties at an inopportun time, because soon after the Austrian-Seljuk War would happen, in which the Rum-Seljuks would take all the territories east of Inn river.