However, Hardik cannot come out of jail for now, as another case of mob violence at an MLA office is pending against him in Visnagar town of Mehsana district.
Next hearing of the Visnagar case bail application in the high court is scheduled on July 11.
Justice A J Desai granted bail to Hardik with strict conditions, one of them being that he will have to stay outside Gujarat for the next six months.
The judge, while pronouncing the judgement, said that he has listed other conditions in written order.
Also Read
The 22-year-old Patel quota stir spearhead has been behind bars since October 2015, in sedition cases that were filed against him in Ahmedabad and Surat.
During the hearing of the case, Government pleader Mitesh Amin had opposed bail to Hardik saying that the state government is apprehensive that if he is let off on bail, Hardik may repeat the offence, and his presence outside the jail may create law and order situation problems in the state.
During earlier hearings, the government had declined to accept Hardik's offer for written undertaking for bail, in which he had stated that he will refrain from activities that may affect law and order situation, but added he will "continue to agitate for grievances of the Patidar community in a peaceful and democratic manner."
Hardik had approached the high court for bail in the sedition cases, after the lower courts in Surat and Ahmedabad (where there are separate sedition cases against Hardik) refused to grant bail.
They are accused of inciting violence to put pressure on the government to accept the demand of OBC reservation for Patels. Hardik's mega rally on reservation held in Ahmedabad on August 25 last year had sparked violence, in which, ten people, including one policeman, were killed and public properties and vehicles worth crores of rupees were damaged across Gujarat.