The Peace of Prague ended Saxony's participation in the Thirty Years War. The terms would later form the basis of the 1648 Peace of Westphalia. Other German princes subsequently joined the treaty and although the Thirty Years War continued, it is generally agreed Prague ended it as a religious civil war within the Holy Roman Empire. Thereafter, the conflict was largely driven by foreign powers, including Spain, Sweden, and France.