By 1700, Anne had been pregnant at least seventeen times; twelve times, she miscarried or gave birth to stillborn children, and two of their five children born alive died within a day.Green, p. 335; Weir, pp. 268–269 The only one of the couple's children to survive infancy—Prince William, Duke of Gloucester—died in July 1700 at the age of 11. With Gloucester's death, Anne was the only person in the line of succession to the throne, as established by the "Glorious Revolution". To extend the line and secure the Protestant succession, Parliament passed the Act of Settlement 1701, which designated William and Anne's nearest Protestant cousins, the House of Hanover, as the next in line after Anne.Curtis, pp. 86–87; Gregg, pp. 121–123
