What were they used for and where as the entrance to them?

Or were they part of the courts?