The bombardment from such a distance confused and frightened the residents of Baghdad and frustrated its defenders, who had never before been attacked by an enemy too far away to be reached by their weapons. In addition to the gunpowder weapons, Mongol engineers had nearly perfected the use of planted explosives to undermine walls.