Samajwadi Party Chief Akhilesh Yadav on Monday alleged that the Sambhal stone pelting incident was a riot done by the government.