When, after the
battle of Komárom from 11 July, on 12–13 July the Hungarian Army of the Northern Danube led by General
Artúr Görgei's departed from Komárom towards
Vác, in the fortress remained around 18,300 soldiers. The Hungarian troops stationing in Komárom were the II. and the VIII. corps, their commander being the 29 years old
Major General György Klapka. On 14 July the Austrian troops encircled the fortress, closing the Hungarians inside it. From that day nobody from the fortress and the town was allowed to leave it without permission, and the soldiers and the inhabitants had to content themselves with a daily food ration. The Liebler brigade took positions in
Csallóköz, massing soldiers in
Csallóközaranyos,
Keszegfalva, and the bridgehead from Nagylél. Pott's brigade was positioned on the left bank of the
Vág river, its detachments holding
Martos,
Ógyalla and Bagota, sending outposts to Puszta-Káva, Puszta-Konkoly, Csuzi and Halom-szeg, stretching them later to
Hetény, Kurtakeszi and
Marcelháza. In order to strengthen their position the Austrians dug from the Herkály grange (Puszta-Herkály), through the Ács forest to the Danube 7 big ramparts with several trenches, barricading the edge of the Ács forest with cut trees. In Csallóköz in order to strengthen the position from the bridgehead from Nagylél and the position from Csallóközaranyos, the Austrians built 6 defence works, and they dug a trench between Csallóközaranyos and Dudva. The same happened also on the left bank of the Vág river, where Pott, seeing that the river Zsitva's water got so down, that, in the case of an attack, the Hungarians could cross it easily, ordered his soldiers to build barricades and parapets at Halomszeg and Konkoly, strengthening also
Komáromszentpéter. The reduction of the number of the enemy army was sensed by the defenders after two days. ==Prelude==