Maria Barbara's birth was followed by the birth of Pedro, Prince of Brazil, on 19 October 1712, which temporarily gave John a male heir. Prince Pedro's death on 29 October 1714 greatly saddened him, but he took solace in the fact that his son, the Infante José (now Prince José), had been born on June 6 earlier that same year. Following the birth of Prince José, John and Maria Anna would have three more children: Infante Carlos, born 2 May 1716, Infante Pedro, born 5 July 1717, and Infante Alexandre, born 24 September 1723. Of the last three infantes, only two would survive to adulthood, Infante Carlos and Infante Pedro; only one would continue the Braganza line: Infante Pedro.