During the Gordon Riots in 1780 Fleet Prison was again destroyed and rebuilt in 1781–1782. In 1842, in pursuance of an Act of Parliament, by which inmates of the Marshalsea, Fleet and Queen's Bench prisons were relocated to the Queen's Prison (as the Queen's Bench Prison was renamed), it was finally closed, and in 1844 sold to the Corporation of the City of London, by whom it was pulled down in 1846. The demolition yielded three million bricks, 50 tons of lead and of paving. After lying empty for 17 years the site was sold to the London, Chatham and Dover Railway and became the site of their new Ludgate station.