The hospital was built between 1680 and 1684 by architect Sir William Robinson. He was the official State Surveyor General for James Butler, 1st Duke of Ormonde and Lord Lieutenant of Ireland to King Charles II. 