Patna: For close to 15 years, he ruled politically volatile Bihar with a paradoxical cocktail of stubborn ideology and pragmatic resilience, making friends with foes and foes with friends at will.
Nitish Kumar's unusual knack for spotting friends has ensured a fourth straight term for him in office despite the drastic slump in his electoral fortune that relegated his JD (U) to the third position in the state assembly with just 43 seats, down from 71 it had won in 2015.
The most atypical of politicians owing their rise to post-Mandal politics, Nitish Kumar stood out for his ability to address the governance deficit, unlike a majority of the breed reared in the socialist stable, but was often accused of pursuing politics of opportunism.
Call it political opportunism or sagacity, his moves, in effect, prevented the Hindutva forces from holding sway over Bihar, where a section of the BJP feels mortified over not having its own chief minister till date despite enjoying a near hegemonic status nationally.
Known for weighing his options carefully before making any move, Kumar, upon a closer look, comes across as a risk taker who has not shied away from going against the tide.
An engineer by training who had taken an active part in the JP movement, Kumar spurned a job offer from the state electricity department and decided to take the political gamble, an oddity among educated youth in Bihar for whom the lure of "sarkaari naukri" remains undiminished.
Unlike Lalu Prasad and Ram Vilas Paswan, his co-travellers during the movement led by Jayaprakash Narayan, electoral success eluded Kumar for long.
He got the first taste of victory after three defeats in the 1985 assembly polls when he won from Harnaut as a candidate of the Lok Dal though the Congress swept the elections riding the tailwind generated by the assassination of Indira Gandhi the previous year.
Four years later he entered the Lok Sabha from Barh even as fellow MP from Saran Lalu Prasad shifted to Bihar, taking over as the chief minister and scripting a spectacular success story which altered the state's political landscape.
Kumar, one of the most articulate leaders of the Janata Dal, had fully backed Lalu in the keenly fought internal contest for chief ministership.
The next decade-and-a-half saw Prasad's rise as one of the most powerful but controversial figures of his time who ruled the state by proxy, getting his demure homemaker wife Rabri Devi elected as his successor, when a charge sheet in fodder scam forced him to step down as the chief minister.
During the same period, Kumar burnt his bridges with Prasad, floated the Samata Party with George Fernandes, and built his own political edifice brick by brick.
The Samata Party joined forces with the BJP and Kumar made a mark for himself as an outstanding parliamentarian and was reckoned among the most competent ministers in the Atal Bihari Vajpayee cabinet.
After a rift between Sharad Yadav, the then Janata Dal president, and Lalu Prasad, the latter broke away and formed the RJD. The Samata Party merged with Sharad Yadav's Janata Dal, which was rechristened as JD(U), while continuing its alliance with the BJP.
After the NDA lost power in 2004, a victory in Bihar held out the promise of a degree of redemption for the BJP-led alliance.
Attempts to wrest power from the RJD-Congress combine, then in power at the Centre as well, after the NDA fell short of majority in the assembly polls of February, 2005, were stymied by Governor Buta Singh's controversial move to dissolve the assembly, without it having even been constituted, in the face of alleged horse trading.
This, however, proved a blessing in disguise for Kumar who was projected as the chief ministerial candidate in the elections that took place nine months later and the JD(U)-BJP combine got a comfortable majority, bringing the so-called "Lalu era" to an end.
Kumar's first five years as chief minister are recalled with admiration even by critics, marked as these were by vast improvement in law and order, though the new dispensation had no dearth of people with criminal background among its rank and file.
Realising fully well that unlike Lalu, he did not have the advantage of belonging to a populous caste group, Kumar created sub-quotas among OBCs and Dalits who were called "Ati Pichhda" (EBC) and "Mahadalits", which was resented by the dominant Yadavs and Dusadhs, Paswan's fellow castemen.
He also brought in measures like free bicycles and school uniforms for school-going girls, which won him much adulation and the exuberant public mood saw him return to power in 2010, leading the JD(U)-BJP coalition to a landslide victory in the assembly polls.
The period, however, also saw the end of "Atal-Advani era" in the BJP and Kumar, who could not fathom the potential of his then Gujarat counterpart Narendra Modi, locked horns with him over the post-Godhra riots in the western state.
Flaunting his secular ideology, Kumar had succeeded in preventing Modi, seen as a polarising figure on account of the Gujarat riots, from campaigning for the BJP Bihar in the 2009 Lok Sabha polls and the assembly elections a year later, something that still riles Hindutva hardliners.
He ultimately snapped his party's 17-year-old ties with the BJP in 2013 when Modi was anointed the BJP's campaign committee chief for the 2014 Lok Sabha polls.
After parting ways with the BJP, he won a trust vote with the support of the Congress, but stepped down in 2014, owning moral responsibility for the JD(U)'s drubbing in the Lok Sabha elections, when the party returned with a dismal tally of just two.
In less than a year, he was back as the chief minister, elbowing out his rebellious protege Jitan Ram Manjhi with support from the RJD and the Congress, and came to be seen nationally as a potential challenger to Modi.
The Grand Alliance that came into being with the JD (U), Congress and the RJD coming together, won the 2017 assembly polls handsomely but came apart in just two years, after Kumar insisted that Lalu's son and deputy chief minister Tejashwi Yadav, whose name had cropped up in a money laundering case related to the time when RJD supremo was the railway minister, "come clear" on the issue.
He abruptly resigned as the chief minister after RJD refused to budge, only to be back in office in less than 24 hours with BJP's support.
Those who saw a "secular alternative" in Kumar felt let down and cried betrayal of "public mandate".
But Nitish Kumar, often referred to as the modern day 'Chanakya' of Bihar after the artful advisor to Mauryan emperor Chandragupta, had kept a logic ready: "I will not compromise on corruption".