The large 15th-century construction known as the Foregate consists of the Torture House (Katownia) to the west and a high Prison Tower (Wieża Więzienna) to the east, linked to one another by two walls. When the Upland Gate was built, the Foregate lost its defensive function and was turned into a jail. The Torture House then had an extra storey added as a court room and was topped with decorative Renaissance parapets.