 However, the castle then declined into a regional seat of government, as the power of the Habsburgs shifted more and more to Austria.On 20 August 1306, Lenzburg received its charter as a town from Count Frederick the Fair.From 1339 on, Count Frederick II of Tyrol-Austria resided at the castle.