TEL AVIV, Israel — Israeli Prime Minister Benjamin Netanyahu underwent successful surgery Sunday to have his prostate removed, hospital officials said, a procedure that came as he manages multiple crises including the war in Gaza and his trial for alleged corruption.

Netanyahu, who has had a series of health issues in recent years, has gone to great lengths to bolster a public image of himself as a healthy, energetic leader. During his trial this month, he boasted about working 18-hour days.

But as Israel’s longest-serving leader, such a grueling workload over 17 years in power could take a toll on his well-being.

Netanyahu, 75, is among older world leaders including U.S. President Joe Biden, 82, and President-elect Donald Trump, 78; Brazilian President Luiz Inácio Lula da Silva, 79; and Pope Francis, 88, who have come under scrutiny for their age and health issues.

Netanyahu’s latest condition is common in older men, but the procedure has had some fallout. The judges overseeing his trial accepted a request from his lawyer Sunday to call off three days of testimony scheduled this week. The lawyer, Amit Hadad, had argued that Netanyahu would be fully sedated for the procedure and hospitalized for “a number of days.”

Netanyahu’s office said Justice Minister Yariv Levin, a close ally, served as acting prime minister during the procedure.

With so much at stake, Netanyahu’s health in wartime is a concern for Israelis and the wider world. As Israel’s leader, Netanyahu is at the center of major global events that are shifting the Middle East. With the dizzying pace of the past 14 months, being incapacitated for even a few hours can be risky.

Netanyahu was in the hospital at a time when mediators are pushing Israel and Hamas to reach a ceasefire in Gaza and as fighting between Israel and Yemen’s Iran-backed Houthi rebels intensifies.

Prostate issues are common and in many cases easily treatable. Still, the procedure put a dent in Netanyahu’s image of vigor at a time when he would want to project strength more than ever, both to an Israeli audience navigating constant threats as well as to Israel’s enemies looking to expose its weaknesses.

Netanyahu insists that he is in excellent health. His office releases footage of him touring war zones in full protective gear flanked by military officers, or meeting with defense officials on windswept hilltops in youthful dark shades and puffer jackets.

But that image was shattered last year when Netanyahu’s doctors revealed that he had a heart condition, a problem he had apparently long known about but concealed.

A week after a fainting spell, Netanyahu was fitted with a pacemaker to control his heartbeat. Only then did staff at the Sheba Medical Center reveal that Netanyahu has for years experienced a condition that can cause irregular heartbeats.

The revelation came as Netanyahu dealt with anti-government protests. The news about a chronic heart problem stoked more distrust during political polarization in Israel.

Last year, Netanyahu was rushed to the hospital for what doctors said likely was dehydration. He stayed overnight, prompting his weekly Cabinet meeting to be delayed.

This year, Netanyahu underwent hernia surgery, during which he was under full anesthesia and unconscious. Levin served as acting prime minister during the operation.

According to Netanyahu’s office, the Israeli leader was diagnosed Wednesday with a urinary tract infection stemming from a benign enlargement of his prostate. The infection was treated successfully with antibiotics, but Sunday’s procedure removed his prostate.

Complications from prostate enlargement are common in men in their 70s and 80s, Dr. Shay Golan, head of the oncology urology service at Israel’s Rabin Medical Center, told Israeli Army Radio. Golan spoke in general terms and was not involved in Netanyahu’s care or treatment.