Droupadi Murmu greets the crowd gathered at her temporary residence in New Delhi, India, Thursday, July 21, 2022.
CNN  — 

Lawmakers chose India’s first president from the country’s tribal communities on Thursday, which could boost the appeal of Prime Minister Narendra Modi’s party among marginalized groups ahead of the 2024 general election.

Droupadi Murmu, a 64-year-old teacher turned politician, will be the second woman to hold the largely ceremonial role as head of the republic when she takes office on July 25 at the start of a five-year term.

More than 4,500 state and federal lawmakers voted in the presidential election on Monday and ballots were counted on Thursday. Murmu’s victory was assured as she was backed by Modi’s Bharatiya Janata Party (BJP), which dominates federal and state politics.

“A daughter of India hailing from a tribal community born in a remote part of eastern India has been elected our President!” Modi said on Twitter.

Painter Jagjot Singh Rubal gives final touches to a painting of Bharatiya Janata Party's (BJP) presidential candidate Droupadi Murmu, in Amritsar on July 21, 2022.

Born into a family of the Santhal tribe from the state of Odisha, Murmu started her career as a school teacher and actively participated in community issues.

She later joined mainstream politics and served as a BJP state lawmaker in Odisha before becoming governor of the eastern state of Jharkhand.

Her election is seen as the BJP’s outreach to India’s tribal communities, which comprise more than 8% of its 1.4 billion people.

“The BJP will want to offset any anti-incumbency of the last 10 years in 2024, and one of the ways to do that is to go for a new vote-base,” political columnist Neerja Choudhary told Reuters.

Murmu beat the opposition candidate Yashwant Sinha, a former BJP finance minister and now a fierce critic of Modi, winning nearly twice as many votes.

The Indian president acts as the Supreme Commander of the Armed Forces but the prime minister holds executive powers. Murmu will take over from Ram Nath Kovind.

The president, nevertheless, has a key role during political crises, such as when a general election is inconclusive, by deciding which party is in the best position to form a government.