 The marriage produced six children, including his successors, Ferdinand IV of Hungary and Emperor Leopold I.His loving and intelligent wife and her brother, the Spanish Cardinal Infant Ferdinand, had great influence on Ferdinand and formed the most important link between the Habsburg courts in Madrid, Brussels and Vienna in the difficult period of the 30-year war for Habsburg after the death of Wallenstein.After Wallenstein's assassination, Ferdinand III took command of the imperial army on May 2, 1634 supported by the generals Gallas and Piccolomini, the military adviser, Johann Kaspar von Stadion and the political adviser "Obersthofmeister" Imperial Count Maximilian von und zu Trauttmansdorff.