On 9 October 2012, a Taliban gunman shot Yousafzai as she rode home on a bus after taking an exam in Pakistan’s Swat Valley. The masked gunman shouted “Which one of you is Malala? Speak up, otherwise I will shoot you all,”and, on her being identified, shot her twice, once in the head and once in the neck. Two other girls were also wounded in the shooting: Kainat Riaz and Shazia Ramzan, both of whom were stable enough to speak to reporters and provide details of the attack.
After the shooting, Yousafzai was airlifted to a military hospital in Peshawar, where doctors were forced to begin operating after swelling developed in the left portion of her brain, which had been damaged by the bullet when it passed through her head.After a three-hour operation, doctors successfully removed the bullet that had lodged in her shoulder near her spinal cord.