Steyr has been on the "iron road" to the nearby Erzberg mine since the days of the Styrian Otakar dukes and their Babenberg successors in the 12th and 13th century, and has been known as an industrial site for forging weapons. The privilege of iron and steel production, particularly for knives, was renewed by the Habsburg duke Albert of Austria in 1287. After the Thirty Years' War, thousands of muskets, pistols, and carbines were produced annually for the Habsburg Imperial Army.