 Maximilian I of Bavaria, who still held Upper Austria in pledge, proposed a cautious approach in the province, but Ferdinand ordered the expulsion of all Protestant pastors and teachers on 4 October.A year later, he prescribed that all inhabitants were to convert to Catholicism in Upper Austria by the following Easter, allowing only noblemen and burghers to choose to leave the province.The Upper Austrian peasants rose up in a rebellion and took control of the territories to the north of the Danube in May–June 1626.