Yata took part in the foundation of the Moroccan Communist Party (PCM) in 1943. After a few years he became the general secretary of the party, replacing the founding general secretary Léon Sultan who died in 1945.
In 1943, Yata played a role in establishing the Moroccan Communist Party (PCM). He later took over as the party's leader after the founding general secretary, Léon Sultan, died in 1945.