Dinaburg Castle stands on the right bank of the Daugava, approximately 18 km upriver from Daugavpils, 3 km southwest of the nearest railway station and 1 km from the Daugavpils - Kraslava road, on the ancient site of the Naujiene mound. Dinaburg Castle was built in 1277 by Ernst von Ratzeburg (Ernests Rasburg), a master of the Livonian Order, on the site of the Naujiene mound, as a border fortress facing Lithuania. Immediately after the construction of the castle in 1278, under the leadership of King Traiden, it was besieged by the Lithuanian army. In the 13th century, the residential area of Latgala included the southeastern part of the current Latgala region, which was the property of the order since 1264. The inhabited lands on the left bank of the Daugava extend to the town of Naujiene, which, although it was on the right bank of the Daugava, was mentioned in a document of 1259 as the extreme eastern point of the border of the Seleucid land. Near Naujiene was one of the 3 main crossing points of the Daugava (the other two - near Sėlpils and near Dole island), which Lithuanians used to get to Vidzeme. At this point - at the Lithuanian border - the Livonian Order built Dinaburg Castle. The maximum length of the castle building is approximately 59 m, the maximum width (in the western part) is approximately 26 m. The building materials they used were very large bricks (dimensions: 30 x 14 x 10 cm), boulders (mainly for foundations) and limestone slabs. The entrance to Dinaburg Castle was from the eastern side - through 2 fore-castles, surrounded by boulder walls and moats.
source: @turizmogidas.lt