In the 1667-1668 War of Devolution, France captured most of the Spanish Netherlands before the Triple Alliance of the Dutch Republic, England and Sweden forced them to relinquish most of these gains at the Treaty of Aix-la-Chapelle. Louis XIV now decided achieving his objectives in the Netherlands was best done by attacking the Dutch directly. When France invaded the Dutch Republic in May 1672, at first it seemed they had won an overwhelming victory. However, by July the Dutch position had stabilised, while concern at French gains brought them support from Frederick William of Brandenburg-Prussia, Emperor Leopold and Charles II of Spain.