In accordance with the agreement, a force of British and Irish troops under Frederick Schomberg were raised to serve in Portugal's ongoing war of independence against Spain. Portugal secured its independence in 1668.