DHAKA, Bangladesh (AP) — Bangladesh’s Parliament elected a stalwart of the country’s new ruling party to the presidency Thursday after the post fell vacant last month following the resignation of the former president, who was a close ally of ousted Prime Minister Sheikh Hasina.The vote confirmed the expected victory of Mirza Fakhrul Islam Alamgir, a veteran of the ruling Bangladesh Nationalist Party, or BNP, who got 255 votes to 88 for challenger Oli Ahmed of the opposition Jamaat-e-Islami party and its allies. A total of 349 members of Parliament were eligible to vote in what was the first contested presidential election since Oct. 1991, when the nation became a parliamentary democracy. Every presidential election since then had been uncontested, drawing no challengers to the ruling party’s candidate.Alamgir was a long-time secretary-general of BNP and steered the political movement against the 15-year rule of Hasina. She fled the country in August 2024 during a mass uprising over allegations of autocratic rule and corruption in the allocation of government jobs, and her party has been barred from politics since last year.

Bangladesh’s president is the head of state and commander-in-chief of the influential armed forces, while the prime minister is the head of the government. Though the presidency is largely ceremonial, it has important roles to play during political crises. Alamgir was expected to take office on Friday. Last month, Bangladesh’s former President Mohammed Shahabuddin, who took office during Hasina’s rule, resigned halfway through his term, following years of political turbulence. His resignation meant that Hasina, who is in exile in India, lost a trusted ally in the establishment at home.