Ben Yahia began her public career in the mid-2000s, serving as director of the department responsible for women, children and family affairs within the Moroccan government from 2006 to 2011. She was subsequently elected to the House of Representatives for the Istiqlal Party and served as a member of parliament from 2011 to 2016, during which time she chaired the parliamentary thematic group on parity and equality.[3]
In 2018, Ben Yahia was appointed director of the Foundation for the Promotion of Social Works for Employees and Assistants at the Ministry of Youth and Sports, a position she held until 2023.[4][5] She also held executive responsibilities in the Foundation for Social Development.
On 23 October 2024, she was appointed Minister of Solidarity, Social Integration and the Family in the government of Morocco, succeeding Aawatif Hayar.[6]