Mayara began working as a civil servant in 1991, he was the head of green zones and parks in the urban commune of Laayoune until 2009.[5][1] In 1996, he was elected general secretary of a local labor union, the National Federation of Workers in the Territorial Communities of the province of Laayoune, an organization affiliated with the UGTM.[1][7]
On behalf of the labor union, he was elected member of the Laâyoune-Boujdour-Sakia El Hamra regional council from 1997 to 2015.[1][7] Mayara also served as regional coordinator of the Istiqlal Youth for the southern provinces and as a member of the Istiqlal Youth Central Committee.[1] He was also a member of the Istiqlal Party's National Council for three consecutive terms, and has been a member of its Executive Committee since 2014.[1][7]
Mayara held several positions in the UGTM, rising through the ranks from the president of its regional office in Laayoune to being a member of its political bureau before joining its standing committee in 2014.[1] On May 7, 2017, he was elected president of the UGTM, succeeding Hamid Chabat.[8] Mayara spent three consecutive terms as a deputy in the House of Councillors representing the UGTM from 2009 to 2021.[1][7] He was named president of the House of Councillors on October 9, 2021.[9][1]
In May 2023, during an Istiqlal Party rally, he qualified the Spanish enclaves of Ceuta and Melilla as "colonized territories" and suggested they be "recovered" to Morocco "through negociation, without resorting to arms" and that the cities "wouldn't succumb to blackmail".[10][11] This sparked outrage and condemnation among Spanish political parties, notably from the right-wing People's Party and Vox.[12]