Within the borders of Transylvania there lived a minor Hungarian noblewoman by the name of Elizabeth Bathory. Her connection to the Hungarian royal family?
Her cousin became a prime minister of Hungary. It was this connection that saved her life. King Mathias of Hungary did not have her killed for her crime due to the connection between the royal family and the Bathorys.
Transylvania and Hungary would have another connection with was more "limited" The Grand Princes of Transylvania would become: Emperor of Austria and in 1867, kings of Hungary.