The town, first mentioned in 902, grew up by the castle  which gave its name to the Babenberg family.
The town's founding is linked to a castle belonging to the Babenberg family, which was first mentioned in 902.