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', built in the 14th century by English forces under Edward I.