H.M. Factory, Gretna was the United Kingdom's largest cordite factory in World War I. The government-owned facility was adjacent to the Solway Firth, near Gretna, Dumfries and Galloway. It was built by the Ministry of Munitions in response to the Shell Crisis of 1915. The capital cost was £9,184,000 and it covered 9000 acres. The cost of working it from September 1916 to September 1918 was £12,769,000, during which time it produced cordite valued at £15,000,000, though it was claimed that without it the cordite would have had to be imported from the USA at a cost of £23,600,000.