She married her uncle, Leopold I, Holy Roman Emperor an on 5 December 1666, the solemn entry of the Infanta in Vienna took place and the official marriage ceremony was celebrated seven days later, on 12 December. Throughout their marriage Margarita Teresa called her husband uncle.