The history of the Royal Marines began on 28 October 1664 with the formation of the Duke of York and Albany's Maritime Regiment of Foot soon becoming known as the Admiral's Regiment. During the War of the Spanish Succession the most historic achievement of the Marines was the capture of the mole during the assault on Gibraltar (sailors of the Royal Navy captured the Rock itself) in 1704. On 5 April 1755, His Majesty's Marine Forces, fifty Companies in three Divisions, headquartered at Portsmouth, Chatham and Plymouth, were formed by Order of Council under Admiralty control.
The Royal Marine Artillery was formed as an establishment within the British Royal Marines in 1804 to man the artillery in bomb vessels. As their coats were the blue of the Royal Regiment of Artillery, this group was nicknamed the "Blue Marines" and the Infantry element, who wore the scarlet coats of the British infantry, became known as the "Red Marines". During the Napoleonic Wars the Royal Marines participated in every notable naval battle on board the Royal Navy's ships and also took part in multiple amphibious actions. Marines had a dual function aboard ships of the Royal Navy; routinely, they ensured the security of the ship's officers and supported their maintenance of discipline in the ship's crew, and in battle, they engaged the enemy's crews, whether firing from positions on their own ship, or fighting in boarding actions.
During the First World War, in addition to their usual stations aboard ship, Royal Marines were part of the Royal Naval Division which landed in Belgium in 1914 to help defend Antwerp and later took part in the amphibious landing at Gallipoli in 1915. The Royal Marines also took part in the Zeebrugge Raid in 1918. During the Second World War the Infantry Battalions of the Royal Marine Division were re-organised as Commandos, joining the British Army Commandos. The Division command structure became a Special Service Brigade command. The support troops became landing craft crew and saw extensive action on D-Day in June 1944.
The Falklands War provided the backdrop to the next action of the Royal Marines. Argentina invaded the islands in April 1982. A British task force was immediately dispatched to recapture them, and given that an amphibious assault would be necessary, the Royal Marines were heavily involved. The troops were landed at San Carlos Water at the western end of East Falkland, and proceeded to "yomp" across the entire island to the capital, Stanley, which fell on 14 June 1982.