and "Good Sir James" Douglas led a campaign in Galloway against the local lords, led by Dugald Macdowall, and their English supporters. Following the Battle of Neville's Cross in 1346 further risings in Galloway, in support of Edward Balliol, were put down by Sir William Douglas. The Douglases were rewarded for these services to the crown: William was made Earl of Douglas in 1358, while his cousin Archibald Douglas, son of Sir James, was created Lord of Galloway in 1369. Known as "Archibald the Grim", he had been appointed Warden of the West March in 1361, and spent the following years attacking the English on both sides of the border. In 1372 he further gained the lands of the Earl of Wigtown, bringing all of Galloway under his control. In order to secure his new holdings, Archibald required a strong castle, and it is assumed that Threave Castle was built at this time. The main keep dates from this time, and was one of the first tower houses built in Scotland, standing alone without any outer defensive features. A harbour was formed to the west to provide access across the river. The excavations in the 1970s revealed remains of additional stone buildings, constructed in the late 14th century, which may represent a hall and a chapel. In 1384 Archibald attacked and took Lochmaben Castle, the last English stronghold in south-west Scotland, and in 1388 he inherited the title of 3rd Earl of Douglas. He thus became the most powerful magnate in the country, controlling lands across southern Scotland and castles including Douglas Castle and Bothwell Castle in Lanarkshire. He funded a rebuilding of Sweetheart Abbey near Dumfries, and contracted marriages for his children with the offspring of King Robert III. Although he probably spent relatively little time at Threave, he died there in 1400, the first historical reference to the castle. He was succeeded by his son Archibald, who in 1390 had married Princess Margaret, daughter of Robert III. In 1424 he led a Scottish force to fight the English in France where he was killed at the Battle of Verneuil. His wife Margaret took on the Lordship of Galloway on Archibald's death, and ruled from Threave as Countess of Douglas and Duchess of Touraine for the next 23 years, outliving her son and grandsons. In 1449 she was forced to cede Galloway to the 8th Earl of Douglas, and