The Soldier Artificer Company was a unit of the British Army raised in Gibraltar in 1772 to work on improving the fortifications there. It was the Army's first unit of military artificers and labourers – the existing Corps of Engineers was entirely made up of commissioned officers – and it replaced the traditional but unreliable practice of employing civilian craftsmen. The company was an immediate success and was responsible for upgrading the British fortress's defences before the Great Siege of Gibraltar.
During the siege between 1779–83, the Soldier Artificer Company played a key role in repairing the damage caused to the fortifications by Spanish bombardments. They also excavated tunnels inside the Rock of Gibraltar to enable the defenders to fire down into the Spanish lines. After the siege, they assisted in rebuilding the civilian settlement at Gibraltar. The Soldier Artificers' numbers were increased several times to a peak of about 250 men organised in two companies. Their success was such that similar units were raised back in Britain to form the Corps of Royal Military Artificers, a predecessor to today's Royal Engineers. The Soldier Artificer Company merged with the Royal Military Artificers in 1797.
The Soldier Artificer Company was established by Lieutenant Colonel William Green to assist his programme of improvements to the fortifications of Gibraltar. He was posted to the fortress in 1761 as its Senior Engineer and in 1769 he put forward improvement plans which were eventually accepted after much debate. The go-ahead was given in October 1770, when the British Government authorised a major programme of construction works. The works were initially carried out by civilians recruited from England and elsewhere in Europe. They were not subject to military discipline, which made them difficult to manage. The only punishments available for misconduct were reprimands, suspension and dismissal; the latter incurred costs and disruption in having to find replacements. These problems caused significant delays and extra expense in completing the works.
To remedy this situation, Green proposed that a company of military artificers should be raised to work on the fortifications. The garrison had occasionally used the artificing skills of individual soldiers, especially artillerymen, over the previous 70 years. Green's suggestion was welcomed by the Governor and Lieutenant-Governor of Gibraltar and was recommended by them to the Secretary of State for endorsement. It was duly agreed and on 6 March 1772 Royal consent was granted. A warrant was issued authorising the raising of a 68-man company consisting of one sergeant-adjutant, three sergeants, three corporals, one drummer and 60 privates working variously as stonecutters, masons, miners, lime-burners, carpenters, smiths, gardeners and wheel-makers. Officers of the existing Corps of Engineers (which consisted entirely of commissioned officers) were put in command of the newly established Military Company of Artificers. It was almost immediately renamed the Soldier Artificer Company.