Prime Minister Narendra Modi on Friday ridiculed the Uttar Pradeshs ruling Samajwadi Party for aligning with the Congress and assailed the Akhilesh Yadav government over a host issues including law and order.