Dhansa and Jharoda Kalan borders were closed for traffic movement due to the demonstration and commuters were asked to take an alternative route, the Delhi Traffic Police said.
Police resorted to lathicharge for a brief time to control protesters who broke barricades. Hours later, they were granted permission to enter Delhi and stage a peaceful protest at Nirankari ground in Burari.
Police said they will not allow the farmers protesting against the Centre's new farm laws to enter Delhi if they reach the borders of the national capital.
Police said farmers have been allowed to hold peaceful protest at the Nirankari Ground in north Delhi.
By late evening, a large group of them had reached the road toll plaza at Panipat, about 100 km from Delhi. Bhartiya Kisan Union (Haryana) leader Gurnam Singh said the protesters planned to spend the night there and will resume the march the next morning.
Clashes broke out at multiple places and Delhi's borders resembled a virtual battle zone with restless crowds of farmers, mostly from Punjab and Haryana, milling around and a sea of police personnel keeping them at bay.