In 1717, Colonel Baron von Neipperg, stationed at Uj-Palánka, after having previously taken Ottoman ships carrying supplies to Belgrade and sinking others, crossed the river with 200 musketeers, 300 hajduks, and a squad of dragoons; attacked and overwhelmed the Turkish post at Ram, plundered extensively; and returned with 90 horses and 100 heads of cattle. After this success, the Austrians were lured into an ambush in a narrow pass by the Ottomans; they attacked and inflicted heavy losses on them, killing 210 men. The colonel managed to break through the encirclement and escape with his men. The captain, Baron von Stein, was captured in the battle. According to Baron von Stein's account, the mounted commanders were to blame for the misfortune; he had instructed them on how to behave, but instead they allowed themselves to be seized with fear at the sight of the enemy pressing on their flank and behind them and therefore gave themselves up to flight. Captain Stein was then taken from Belgrade to Adrianople, where he was mistreated and put in irons together with an armorer from the regiment.[2][3][4][5]