After the outbreak of the Austro-Turkish War in 1788, the Ottoman army of 70,000 men led by Grand Vizier Koca Yusuf Pasha invaded Banat on August 7 after forcing the Habsburgs to raise the siege of
Belgrade. At
Mehadia, there was a Habsburg force led by
Wilhelm von Wartensleben, which consisted of 7 battalions and 12 squadrons and was reinforced by
the Emperor to 15 battalions and 14 squadrons; not all of them, though, were present at Mehadia. On August 4, the Ottomans crossed the Danube and began bombarding a Habsburg army camp led by General Papilla, which consisted of
Wallachian cavalry at Szupany. Papilla did not attempt to prevent the Ottomans from crossing but instead withdrew to Mehadia north; however, on August 7, he was ambushed by the Ottomans, killed several of them, and captured 13 cannons left by them. Papilla managed to break through. The Habsburg emperor,
Joseph, criticized Papilla for this. Joseph's primary concern was the safety of Wartensleben's camp at Mehadia. The breach of the line of defense at Szupany exposed him to enemy attack and made his line of supply vulnerable. Joseph marched to help Wartensleben's camp. ==Battle==