In about 1505 Henry VII planned a great hospital for "pouer, nedie people", leaving money and instructions for it in his will. The hospital was built in the palace ruins and was licensed in 1512. Drawings show that it was a magnificent building, with a dormitory, dining hall and three chapels. Henry VII's hospital lasted for two centuries but suffered from poor management. The sixteenth-century historian John Stow noted that the hospital was being misused by "loiterers, vagabonds and strumpets". In 1702 the hospital was dissolved, and the hospital buildings were used for other purposes. Part of the old palace was used for a military prison in the eighteenth century. In the nineteenth century, the old hospital buildings were demolished and new buildings erected.