India's Supreme Court granted bail on Friday to Delhi Chief Minister Arvind Kejriwal in a graft case, paving the way for his release almost six months after he was arrested.
Kejriwal's release is expected to boost the morale of his decade-old Aam Aadmi Party (AAP) as it will allow him to campaign in regional elections next month in the northern state of Haryana, where AAP is trying to make inroads, and in Delhi early next year.
He was first taken into custody in March by India's financial crime-fighting agency, weeks before the country's national elections, in relation to alleged irregularities in the capital city's liquor policy.
Although he was granted bail in that case in July, he remained in detention due to his arrest a month previously by the federal police in a graft case related to the same policy.
Kejriwal, 55, and AAP deny the allegations and say the cases are "politically motivated".
Ordering Kejriwal's release, Justice Surya Kant said that the issue related to "liberty" and "prolonged incarceration" could not be justified.
The two-judge bench was split, however, on Kejriwal's appeal challenging his arrest, with Kant holding it lawful while Justice Ujjal Bhuyan said the timing raised serious questions.
The federal police "must not only be above board but must also be seen to remain so ... in a functional democracy governed by the rule of law, perception matters," Bhuyan said.
In its first reaction following the verdict, AAP said, "Truth can be troubled, but not defeated".
Opposition parties have been demanding Kejriwal's release, saying his arrest was an attempt by Prime Minister Narendra Modi's Bharatiya Janata Party (BJP) to deny them a level playing field in the polls, charges denied by Modi and BJP.
Other countries, including the US, had urged a "fair" and impartial trial. On Friday, BJP said bail to Kejriwal did not mean he was innocent.

Tankers exit Hormuz as Trump, Vance talk up Iran deal prospects
WHO says 139 suspected Ebola deaths in Congo outbreak, numbers expected to rise
China's Xi, Russia's Putin praise ties but see no energy headway at Beijing talks
Russian attacks kill two in Ukraine; Kyiv drones strike central Russia
Trump says US may strike Iran again but that Tehran wants deal