Streep, 67, was in Marrakesh to share her wisdom with high schoolers as part of Mrs. Obama's Let Girls Learn initiative, which encourages female education and empowerment.
Streep, who was the first person in her family to attend university, encouraged the teens to never give up on their goals despite the inevitable challenges they may face on the way, reported People magazine.
"Every single person's story is different. In my own life I know that losing heart is the most dangerous thing. You can put any obstacle in front of me and I will jump over it, but when you lose heart, you lose everything," Streep said.
Also on hand at the event was "Slumdog Millionaire" actress Freida, who encouraged the females to not be afraid to speak their minds, saying, "It's important for girls to be able to stand their ground. It's important for you to not be shy to raise your voices."
Streep and Pinto, along with Obama and her two teenage daughters, Sasha and Malia, also gathered at the King's Palace to join Princess Lalla Salma for a traditional Moroccan iftar, a dinner to break the fast of Ramadan.