Isaac II Angelos
In January 1185, Margaret married the Byzantine Emperor Isaac II Angelos, who wanted a politically strategic alliance with Hungary in order to strengthen his claim to the throne. Upon this marriage, Margaret took the baptismal name "Maria".