Yahweh confused them before Israel, and he killed them with a great slaughter at Gibeon, and chased them by the way of the ascent of Beth Horon, and struck them to Azekah, and to Makkedah.
Note in Joshua 10:9-15 how the writer alternated references to the activities of the Israelites and God. He seems to have wanted to impress the reader with the fact than God and men were laboring together to secure the victory (cf. 1 Corinthians 3:9).