Charles Ferdinand Vasa left a huge fortune and the majority of it was spent on various foundations of churches in the country. The rest was inherited by his brother John II Casimir. Money and estates inherited from the king's brother helped to finance the troops and the military during the Polish-Swedish War (known as the "Deluge"), and the Duchy of Silesia provided the king with shelter when he had to flee Poland in 1655.