Caerlaverock Castle was built and lived in by the Maxwell family from the late 1200s until 1640.