The Habsburg army was besieging Temesvar, but when the Ottoman army crossed the Danube the siege was lifted and both armies met near the Bega River on August 26.