 She was also loved by her husband, who was quickly presented with a son the year after his marriage.The son survived only three weeks, but a year later, Maria Sophia had another son who would succeed his father as John V of Portugal.As an adult, he would marry his first cousin Maria Anna of Austria, daughter of Empress Eleonore Magdalene.