Ilavský castle dates from the turn of the 11th - 12th century. It was probably founded by Knights Templars and later it served as a monastery. The first document of the castle dates from 1446. The state administration established a state prison in the castle, which, in a new form, has remained there until the present day. There was also a concentration camp during World War II.
References:Dryburgh Abbey on the banks of the River Tweed in the Scottish Borders was founded in 1150 in an agreement between Hugh de Morville, Constable of Scotland, and the Premonstratensian canons regular from Alnwick Abbey in Northumberland. The arrival of the canons along with their first abbot, Roger, took place in 1152.
It was burned by English troops in 1322, after which it was restored only to be again burned by Richard II in 1385, but it flourished in the fifteenth century. It was finally destroyed in 1544, briefly surviving until the Scottish Reformation, when it was given to the Earl of Mar by James VI of Scotland. It is now a designated scheduled monument and the surrounding landscape is included in the Inventory of Gardens and Designed Landscapes in Scotland.
David Erskine, 11th Earl of Buchan bought the land in 1786. Sir Walter Scott and Douglas Haig are buried in its grounds.