The Engelbrekt rebellion (Engelbrektsupproret) was an uprising during 1434–1436 led by Swedish miner and nobleman Engelbrekt Engelbrektsson and directed against Eric of Pomerania, the king of the Kalmar Union. The uprising, with its center in Dalarna and Bergslagen, spread throughout Svealand and Götaland. The rebellion caused erosion within the unity of the Kalmar Union, leading to the temporary expulsion of Danish forces from Sweden. In 1434, Sweden was part of the Kalmar Union, a personal union that united Sweden with Denmark and Norway under a single monarch, Eric of Pomerania. The Swedes were not happy with the Danes' frequent warfare on Schleswig, Holstein, Mecklenburg, and Pomerania, which disturbed Swedish exports (notably iron) to the Continent. During the Danish-Holstein-Hanseatic war, while the exports were brought to a halt, the collection of taxes continued, enraging Swedish peasants. Furthermore, the centralization of government in Denmark raised suspicions. The Swedish Privy Council wanted to retain a fair degree of self-government. Engelbrekt Engelbrektsson, with interests in the mining region of Bergslagen, stood out as the leader. In 1431 or 1432, Engelbrekt Engelbrektsson had been appointed spokesman for the people of Bergslagen to persuade King Erik to dismiss the local bailiff in Västerås, Jens Eriksen. Negotiations with Eric took place in Vadstena in August 1434, but were unsuccessful. In the summer of 1434, enraged miners and peasants burned Borganäs castle near Borlänge. The tension spread, causing several assaults on castles across the country. Jens Eriksen fled to Denmark and was replaced by the count Hans av Eberstein. However, Engelbrekt and his followers were not happy as their demand that Jens Eriksen should face legal prosecution where not followed up on. The ombudsman of King Erik had found Jens Eriksen's actions to be illegal prior to the uprisings, which were in large reactions to the failure of the government to take action against the bailiff.