Five battalions of troops of the Electorate of Brunswick-Lüneburg (Hanover), whose Elector was none other than the British King George III, were sent to Gibraltar and Menorca to relieve the British soldiers stationed there, who could then be sent to fight in America. Since Hanover was ruled in personal union and had its own government, Hanoverian troops were deployed under a British-Hanoverian Treaty in which Great Britain agreed to pay Hanoverian expenses and defend Hanover against invasion while the troops were away. These Hanoverian soldiers were defenders during the Great Siege of Gibraltar, the largest and longest battle of the war, and in the defense of Menorca. Late in the war, two regiments from Hanover were sent to British India, where they served under British command in the Siege of Cuddalore against a combined French and Mysorean defense.