 At this Reichstag he also made an alliance with Poland against Sweden.The empire came to Poland's support during the Second Northern War.Ferdinand also brought about the royal election of his son Ferdinand IV, who, however died in 1654.