The history of the Palace of Westminster began in the Middle Ages when it was used as a royal residence. The English (and subsequently British) Parliament of the United Kingdom has met there since 1295. The Palace burned down in 1834 and was replaced by the modern building.