In 1776, Lord Mount Stuart became the Peerage of Great Britain and owner of Caerphilly Castle. He took some steps to restore it. His grandson, John Crichton-Stuart, the 2nd Marquess of Brute, became a wealthy coal industrialist and focused his investments on building docks at Cardiff. However, the 3rd and 4th Marquesses of Bute loved castles. They spent heavily on revitalizing Caerphilly Castle through 1939. In 1950, the 5th Marquess of Bute gifted the fortress to the Welsh government.