 The Library was formally established by an Act of the Irish Parliament in 1707 (6 Anne c. 19), and the Second Gallery was added in 1708 or 1709.The design was by the then Surveyor General of Ireland, Sir William Robinson, also the architect of the Royal Hospital Kilmainham.Marsh donated his own library, which included the former library of Bishop Edward Stillingfleet, of over 10,000 volumes, regarded as one of the finest in England, which he had bought for 2,500 pounds.