Final answer:
Malala Yousafzai was shot by a Taliban gunman on her way to school after she advocated for girls' education, as recounted in her memoir 'I Am Malala'.
Step-by-step explanation:
After the Pakistani army weakened the Taliban's hold on the Swat Valley and Malala's school was able to re-open, Malala Yousafzai was shot on the way to school.
On Tuesday, 9 October 2012, a Taliban gunman targeted her for her outspoken advocacy of girls' right to education, which is detailed in her memoir I Am Malala: The Girl Who Stood Up for Education and Was Shot by the Taliban.
This traumatic event amplified her resolve and commitment to education for girls worldwide, making her a symbol of resistance against Taliban oppression and an advocate for human rights.
Malala became a prominent activist, speaking out against the Taliban and advocating for the rights of girls to go to school. However, despite her efforts, she was targeted by the Taliban and shot on her way to school.