Modi was up against an unlikely alliance of two powerful local leaders, Kumar and former Bihar chief minister Lalu Prasad Yadav, who has served time in prison for corruption.
As the contest tightened in recent weeks, the campaign shifted to bitter issues along religious and caste lines that have traditionally dominated the state of 100 million people, more than the population of Germany.