The ruins of Linlithgow Palace are situated in the town of Linlithgow, West Lothian, Scotland, 15 miles west of Edinburgh. A royal manor existed on the site in the 12th Century. This was replaced by a fortification known as 'the Peel' was built in the 14th Century by English forces under Edward I. The site of the manor made it an ideal military base securing the supply routes between Edinburgh Castle and Stirling Castle.