"Dhami was released by Magistrate Udai Pratap Singh after he deposed before court... And furnished two security bonds of Rs 1 lakh each," said Raghunath Singh Chauhan, the counsel for the MLA.
Dhami is an accused, along with four others, in a case involving a clash in the Munsiyari area in 2007.
A non-bailable warrant had been earlier issued against Dhami by the Didihat munsif court after he repeatedly ignored summons asking it to appear before it.
He surrendered before the first class judicial magistrate in Didihat on May 18 and was sent to judicial custody after his initial bail plea was rejected on the grounds that he had disobeyed court.