John was now king of an empire that stretched four continents. He was also the head of state of a kingdom that was at war with Spain and France. His first regnal act was to renew Portugal's membership in the League of Augsburg and continue in the war alongside the England and the Habsburgs. Portugal quickly supplied more troops to aid her allies in the war. This new level of Portuguese involvement allowed John's general, António Luís de Sousa, Marquis of Minas, to capture Madrid on 28 June 1706. While Portugal put vast resources into the war, contrary to John's predecessors, who avoided conflicts in Europe, activity in the war soon lost the interest of the king, who had more pressing affairs to attend to.