The fortification defined an area of 56 hectares with a rectangular floor plan, making Trnava one of the largest cities in Central Europe at the time of its creation. Its perimeter was about 3 kilometers long, of which about two thirds have been preserved to this day. From the outside, the fortification was surrounded by a moat, which was filled from the city pond north of the city in times of danger. The city was entered through four tower city gates, two in the northern and two in the southern section. Later, smaller pedestrian gates were added, the so-called fortne, one on the east and two on the west side of the city. In the 19th century, when the walls no longer served a defensive purpose due to changes in military technology and the way of fighting, the main gates were demolished with some sections of the castle walls. Water ditches were also abolished, sections on the south and north sides of the city were filled in, a park was created in the ditch on the west side of the city. Of the gates, only a small entrance gate at the southwest corner and a partially rebuilt gate on the east side behind the parish church have been preserved. The fort on the west side near the Franciscan church was replaced in 1937 by Bernolák's gate.