Lockerbie is a town in Dumfries and also Galloway, south-western Scotland. It lies approximately 75 miles (121 km) from Glasgow, as well as 20 miles (32 km) from the English border. It had a population of 4,009 at the 2001 census. The town concerned worldwide interest in December 1988 when the wreckage of Pan Am Flight 103 crashed there adhering to a terrorist bomb attack aboard the flight. Lockerbie apparently has existed since at the very least the days of Viking influence in this part of Scotland in the duration around 900. The name (originally "Loc-hard's by") means Lockard Community in Old Norse. The visibility of the remains of a Roman camp a mile to the west of the town suggests its beginnings might be even previously. Lockerbie initially went into recorded history in the 1190s in a charter of Robert de Brus, second Lord of Annandale, granting the lands of Lockerbie to Adam de Carlyle. It appears as Lokardebi in 1306. About 2 miles to the west of Lockerbie on 7 December 1593, Clan Johnstone dealt with Clan Maxwell at the Battle of Dryfe Sands. The Johnstones virtually exterminated the Maxwells associated with the battle, bring about the expression "Lockerbie Lick." Lockerbie's primary period of development started in 1730 when the landowners, the Johnstone family, made stories of land offered along the line of the High Street, generating effectively a semi-planned settlement. By 1750 Lockerbie had actually ended up being a considerable town, and from the 1780s it was a staging post on the carriage course from Glasgow to London. Maybe the most crucial period of growth was during the 19th century. Thomas Telford's Carlisle-to-Glasgow road was built with Lockerbie from 1816. The Caledonian Railway opened up the line from Carlisle to Beattock with Lockerbie in 1847 as well as later on right to Glasgow. From 1863 up until 1966 Lockerbie was also a train junction, serving a branch line to Dumfries. Known as the Dumfries, Lochmaben and Lockerbie Railway, it was closed to passengers in 1952 and to products in 1966. The community is served by Lockerbie train station. Lockerbie had been house to Scotland's biggest lamb market given that the 18th century but the arrival of the Caledonian Railway raised better its duty in the cross-border sell lamb. The railway likewise generated a decreasing in the rate of coal, permitting a gas functions to be integrated in the community in 1855.