In 1475, the mountain regions of Saanen and Pays-d'Enhaut, who were allied with Bern, attacked and burned the tower of Aigle Castle. They then gave Aigle town and the surrounding district, including Ollon, Bex, and Les Ormonts, to Bern in exchange for not having to pay one-third of their income to Bern. In the treaty of Fribourg from 1476, Fribourg received rights over the Aigle district, which they gave up to Bern in 1483. Bern rebuilt Aigle Castle in 1489 and made it the seat of the bailiwick of Aigle. The Aigle bailiwick included all of the present district except Villeneuve. It was thus the first of the French-speaking parts of Switzerland to become subject to Bern.