To deter William from marching to the town's relief, Louis arranged for a simultaneous landing in England to assist King James II in his attempt to regain his throne. This force consisted of 12,000 Catholic Irish troops, released after the conclusion of the Irish war under the terms of the Treaty of Limerick, supported by a similar number of French troops. However, an essential preliminary to the invasion was the acquisition of naval supremacy in the English Channel.