In 1475, during the Burgundian Wars, 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 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. Also in 1475, the Confederation attacked and captured Grandson Castle. In the next year, Charles the Bold retook the castle and executed the Bernese garrison. In 1476, at the Battle of Grandson, Charles' forces retreated and the Bernese retook Grandson. After Charles' defeat at the Battle of Murten, Grandson became a shared territory between Bern and Fribourg. Each city appointed a vogt for five-year periods. Aigle and Grandson were the first French speaking regions in the Canton of Bern.