Original: It was reported that an invading Ottoman army turned back in fright when it encountered thousands of rotting corpses impaled on the banks of the Danube.
Simplified: It was reported that an invading Ottoman army turned back when they saw thousands of rotting corpses impaled on the banks of the river Danube.