Dunrobin's origins lie in the Middle Ages, but most of the present building and the gardens were added by Sir Charles Barry between 1835 and 1850.