The enemy armies set up their battle lines carefully. The Ammonites positioned themselves so that the city of Medeba could be a safe place. Meanwhile, the Israelites faced a second attack from the Arameans. Joab split his forces to fight on both sides from a central gathering point.