However, in 1672, the English again formed an alliance with the French (in accordance with the Secret Treaty of Dover of 1670) against their common commercial rival, the rich Dutch Republic – the two nations fighting side by side during the Franco-Dutch War (1672–1678) and Third Anglo-Dutch War (1672–1674). This war was extremely unpopular in England. The English had been soundly beaten at sea by the Dutch and were in a worsening financial situation as their vulnerable global trade was under increasing threat. The English pulled out of the alliance in 1674, ending their war with the Netherlands and actually joining them against the French in the final year of the Franco-Dutch War in 1678.