The battle of Hunayn occurred in 630 CE. The tribes of Hawazin were alarmed by the rapid progress of Islam, and they thought that if it continued to spread at the same speed, they would become isolated from other pagan tribes. Their leaders figured that it would be unwise on their part to let the Muslims consolidate their recent gains and become too strong. So they gathered, under the command of Malik bin Awf An-Nadri.
The battle ended in a decisive victory for the Muslim.