El Mansouri, a lawyer by training, studied at Mohammed V University in Rabat before continuing her education in France and the United States, specialising in business and corporate law. She entered politics after Pam was founded in 2008 and became the first woman to serve as mayor of Marrakesh in 2009, returning to that post after the 2021 elections. She also served as a minister in the previous coalition government.
At a victory press conference before her appointment, El Mansouri was asked whether the state would need to adjust Muslim religious ceremonies attended by the king — such as Friday and Eid prayers, where men and women pray separately — to accommodate her. She did not directly answer, instead praising King Mohammed VI as "the biggest advocate for women" in the country. "His Majesty is the holder of wisdom… If I am entrusted with the responsibility of head of government, it will be a great honour," she said.
Morocco is a constitutional monarchy, but most power remains with the king. El Mansouri was chosen over Fouzi Lekjaa, the country's football chief and a senior Pam politician, for the premiership. Her appointment marks a historic milestone in Moroccan and Arab politics.