Teenager Malala Yousafzai has opened a £188m library in Birmingham hailing pens and books as "weapons" which can defeat terrorism.
The 16-year-old, who was shot in the head by the Taliban for campaigning for female education said the new site would "enlighten the future generations".
She told an audience outside: "Pens and books are the weapons that defeat terrorism. I truly believe the only way we can create global peace is through educating not only our minds, but our hearts and our souls."
Malala now attends a school in Birmingham and said it was an honour to be asked to open the library.
She said: "Birmingham is very special for me because it is here that I found myself alive, seven days after I was shot. It is now my second home, after my beloved Pakistan. The doctors and nurses of this town worked hard to help me recover.
"The teachers of this town strived to rehabilitate my educational career, and the great people of this city gave me great moral support," Malala continued.
Surgeons who treated Malala say she came within inches of death when a Taliban bullet grazed her brain. She was brought to the UK for emergency treatment last October.
The civic library is thought to be the biggest in Europe.