Former presidential candidate Mohammed Abduba Dida has waded into the Kibra parliamentary race politics launching a scathing attack on Deputy President William Ruto.

The Alliance for Real Change party leader said it was both 'stupid and illegal' for Ruto to campaign for his preferred candidate McDonald Mariga using Jubilee administration projects in the area which hosts the biggest slum in the country.

In a tweet on Tuesday, Dida accused the DP of blackmailing Kibra electorate by telling them they will benefit hugely from the government should they vote for Mariga who is the Jubilee party candidate in the November 7 poll.

"It is stupid and illegal for Jubilee to use government projects to campaign in Kibra by-election. The DP shouldn't blackmail Kibra residents by asking them to vote Mariga for them to enjoy government support and projects. Pure nonsense!" he posted.

Dida  was reacting after Ruto hosted a delegation of residents and elected leaders from Kibra at his Karen office in Nairobi on Tuesday, and asked them to rally behind the former Kenyan international footballer.

"Kibra and other informal settlements in Nairobi will be among the major beneficiaries of the government’s housing plan under the Big Four Agenda. It is therefore incumbent upon leaders from the area to ensure this affordable and decent shelter dream for every Kenyan is realised," Ruto tweeted.

Ruto has come out as the chief campaigner of Mariga who is expected to face stiff competition from Imran Okoth of ODM, Eliud Owalo of ANC and Khamisi Butichi of Ford-Kenya.