Ndeye Awa Diop was so shy as a child that she couldn't look people in the eye. Raised in rural Senegal, she grew up learning what was expected of girls in this mostly Muslim West African nation: be seen, not heard, and obey your elders. At 12, everything changed when she was accepted into Senegal's first elite boarding school for girls, perched on Goree Island off the coast of Dakar. Five years ago she arrived homesick and crying, too timid to raise her hand in class. Now she is 19, president of the student council, and about to graduate. "I learned to be a leader," she said.

The school was founded in 1985 by Senegal's first president, Leopold Sedar Senghor, and named after Mariama Ba, the country's most famous female author. Ba's novels explored women caught between tradition and modern ambition, criticizing both polygamy and patriarchy. She resisted being called a feminist—she saw it as a Western invention—yet she championed gender equality her whole life.

Only 35 girls are admitted each year, chosen from 150 who are invited to take an entrance exam based on their grades. Tuition and boarding are fully paid by the state. Through six years of middle and high school, the girls receive rigorous academic training, study art, play sports, and listen to talks from successful female writers, politicians, and doctors—many of them graduates of the same school. The result is a 100% completion rate, rare in a country where fewer than 20% of girls finish high school.

Why does this matter? Senegal has made huge progress in girls' education—more girls than boys are enrolled in primary school. But girls still drop out more often. For every 100 boys who can read and write, just 84 girls can. When money is tight, families often keep boys in school even when girls show more promise. Girls also skip class when they start menstruating, and are more likely to marry and have children as teenagers. "The current challenge isn't access to school for girls, but rather the completion of schooling up to secondary level," said Maissa Abdellaoui, a girls' education specialist with UNICEF.

Within the school's walls, students push back hard against those limits. In one classroom, 15-year-olds fiercely debated the history of slavery. Their teacher, Paul Felix Thiao, smiled as he watched. "Often in society, we see that men tend to dominate women," he said. But places like this show that "if we give them more freedom, if we give them more opportunities, they can go far."

Still, the battle continues beyond graduation. Women own only 2% of agricultural land, and under Senegalese law only men can be heads of households. Student Marie Diop, 18, put it plainly: "In Senegal, people's mentality remains very, very, very strict regarding women's independence. Each day you are fighting a battle to make people understand that women have the capacity to manage, to be in charge."

The school occupies a former French military barracks on an island with a painful past—as Africa's westernmost point, it was once the largest center of the trans-Atlantic slave trade. Today no cars roll on its cobblestone streets, and bougainvillea, baobabs, and palm trees fill the courtyards. Headmistress Ramatoulaye Diagne Sarr sees her school as a model for girls "who are hesitating, who think it's impossible to climb the ladder." The alumni association mentors students too. Their message is simple: climb anyway.