 During the 12th century, dukes under Babenberg rule made the town into an important commercial center.Later, Graz came under the rule of the Habsburgs and, in 1281, gained special privileges from King Rudolph I.In the 14th century, Graz became the city of residence of the Inner Austrian line of the Habsburgs.