Original: The attacking Mongols broke some dikes and flooded the ground behind the caliph's army, trapping it.
Simplified: The attacking Mongols broke some dikes and flooded the ground behind the caliph's army, trapping them.