 The building held different courts, including the Dublin Commission Court (for the city and county, similar to the assizes held in other Irish counties), the city quarter sessions, and the courts of the Lord Mayor, the Sheriff, and the Recorder.The courthouse was part of a complex which also included three prisons — Newgate (completed 1781), the Sheriff's Prison (completed 1794), and the City Marshalsea (completed 1804) — and the Governor of Newgate's residence.The Newgate prison replaced the original county gaol of the county of the city of Dublin, which was located at the New Gate of the city wall.