Kazib declared a "pre-candidacy" for the 2022 presidential election on 4 April 2021 during an NPA (New Anticapitalist Party) political council. The candidature was rejected by the majority branch of the party amid internal tensions between a radical faction (including the Courant communiste révolutionnaire) and a more moderate faction open to rapprochements with
La France Insoumise. The Courant communiste révolutionnaire left the NPA in June 2021, depriving the party of about 300 activists; the NPA ultimately presented Philippe Poutou as its candidate. After launching his own campaign Kazib was targeted by a campaign of online harassment and death threats from the extreme right. In February 2022 racist posters appeared at Sorbonne where he had been invited to speak. Kazib complained of marginalization in media coverage: between 1 January and 18 February 2022 his total airtime across radio and television amounted to five minutes, according to ARCOM.
Arrêt sur images noted his frequent absence from televised lists of candidates ranked by sponsorship numbers. On 9 February 2022 Kazib was scheduled for a Q&A at Panthéon-Sorbonne's Centre Panthéon. Following prior intimidation campaigns by the extreme right, several hundred students gathered in support before the conference; organisers moved the event outdoors because the allocated amphitheatre was too small. The rally drew more than 450 people and included support from
Assa Traoré, Bruno Gaccio and
SOS Racisme. The university denounced the gathering and Kazib was summoned on 18 February by the public prosecutor for "holding a demonstration on public highways without declaration". Kazib officially submitted his candidacy for the presidential election on 16 February 2022. He collected 122 sponsorships from elected officials, including 87 mayors and 23 city councillors.{{cite news|last=Guémart|first1=Loris|title=Anasse Kazib, 122 parrainages, candidat-fantôme à la télé Kazib presented a platform described as communist, revolutionary, ecological, anti-imperialist and opposed to discrimination, with an emphasis on youth. Supporters included
Assa Traoré, journalist
Taha Bouhafs, sociologist
Kaoutar Harchi and transfeminist activist Sasha Yaropolskaïa. However, his organisation did not obtain the required number of sponsorships (it collected 160 validated sponsorships) and he was not accepted on the official presidential ballot. ==Legislative campaign (2024)==