In 976 the House of Babenberg became rulers of the area. They made Vienna their capital in 1155. Vienna was already an important city. In 1156, Austria became a Duchy, and Vienna was where the Duke who ruled the Duchy lived. In 1221, Vienna got municipal rights. It Is the second oldest city in Austria (Enns, in Upper Austria, is the oldest).