Cardiff was at peace throughout the ensuing century. In 1766, John Stuart, 1st Marquess of Bute married into the Herbert family and was later created Baron Cardiff. In 1778, he began renovating Cardiff Castle. A racecourse, printing press, bank and coffee house opened in the 1790s and Cardiff gained a stagecoach service to London. Despite these improvements, Cardiff's position in the Welsh urban hierarchy had declined over the 18th century. Iolo Morganwg called it "an obscure and inconsiderable place", and the 1801 census found the population to be only 1,870, making Cardiff only the 25th largest town in Wales, well behind Merthyr and Swansea.