Vehicle movement was disrupted for around two hours due to the blockade, leading to long queues stretching for kilometers on both sides.
The farmers dispersed after police assurance.
"The farmers were extremely upset over the delay in purchase of onions on the MSP in the mandi. They called off their protest after assurance that their grievances would be addressed," said Ashta Police Station Incharge BD Beera.
However, there are complaints from many places that onion is not being bought from the farmers at the MSP announced.
For several days, farmers have been waiting patiently in the mandi to sell the onion crop, with several juge bags of the vegetable getting spoiled due to heavy rain.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.