Recent gains by the Islamist insurgency in Somalia have prompted some officials at the U.S. State Department to propose, as a precautionary security measure, closing the American embassy in Mogadishu and withdrawing most American personnel, according to officials familiar with internal deliberations.

But other officials in the Trump administration, particularly on the National Security Council, are concerned that closing the embassy could undermine confidence in Somalia's central government and inadvertently lead to a rapid collapse.

Instead, they want to expand American operations in this war-torn country as part of efforts to confront the armed Shabab movement, according to the officials.

The competing concerns are fed by memories of foreign policy disasters, such as the 2012 attack by Islamist militants on the American mission in Benghazi, Libya, and the sudden collapse of the Afghan government as American troops withdrew in 2021.

They also highlight the broader dilemma facing the Trump administration as it shapes its strategy toward Somalia, a chaotic and dysfunctional state divided by complex clan dynamics, where the United States has waged a low-intensity war for two decades with little progress.

These considerations appear to place Sebastian Gorka, President Trump's senior counterterrorism adviser, who favors a hard-line approach to the use of force, against more isolationist elements in Mr. Trump's coalition.

The latter, weary of the "forever wars" that followed the Sept. 11, 2001, attacks, see little significant American interest in Somalia.

In early April, Mr. Gorka convened an interagency meeting at the White House to begin developing an approach, according to officials briefed on the outcome of the meeting, who spoke on condition of anonymity to discuss sensitive deliberations. The meeting reportedly ended without a clear resolution.

Under presidents of both parties, the United States has pursued a policy of supporting Somalia's weak central government by training, equipping and providing close air support through drone strikes to selected units of its own special forces, known as Danab, in their fight against Shabab, an affiliate of Al Qaeda.

The policy is intended to pave the way for the Somali government to eventually maintain security on its own.

But, as in places like Afghanistan, that has not yet happened.

Conditions have deteriorated amid reports that some Somali forces have failed to hold their ground and fight, and President Hassan Sheikh Mohamud has reportedly alienated not only rival clans but also some of his own supporters.

The National Security Council and the Pentagon did not respond to requests for comment from The New York Times.

A State Department spokesperson said the embassy in Mogadishu, the Somali capital, "remains fully operational" and that the department "continuously monitors and assesses threat information and adjusts our security and operational posture accordingly."

Maureen Farrell, the Pentagon's senior official for African policy during the Biden administration, stressed that there could be no purely military solution to Shabab.

She added that the United States should focus on the dangerous hard-liners while seeking to draw the rest of the group into political settlements.

Ms. Farrell, who now serves as vice president of the security consulting firm Valar Solutions, said: "If we're thinking about drawing down our presence, we should use that potential drawdown to press for real progress on our goals."

"This is a once-a-decade opportunity to confidently signal that we are prepared to leave unless we see significant change."

For most of his first term, Mr. Trump escalated U.S. military efforts in Somalia, including loosening restrictions imposed by Obama on drone strikes.

But in his final weeks in office, Mr. Trump abruptly changed course and ordered most American forces to leave Somalia, except for a small number guarding the embassy.

The military redeployed its forces to neighboring Kenya and Djibouti, but continued to rotate them into Somalia on short visits to provide ongoing support to Somali forces that the United States trains and equips as partners.

In 2022, after military commanders complained about the difficulties of entering and exiting Somalia, President Joseph R. Biden Jr. allowed the military to return to longer-term deployments there.

Between 500 and 600 American troops are currently in Somalia, according to U.S. Africa Command. The new administration has also carried out several airstrikes against Islamic State militants in northern Somalia.

A few weeks ago, officials said Shabab's battlefield advances had brought it close to Mogadishu, raising concerns about the safety of the American embassy, a fortress-like compound at its airport. The onset of the rainy season has since slowed the pace of fighting, providing some breathing room.

Omar Mahmood, a senior Somalia and Horn of Africa analyst at the International Crisis Group, said Shabab's attacks, which began in late February, initially caught the government off guard, and the group recaptured some rural villages it had lost to Somali national forces two years ago.

But he argued that the gains have been somewhat overstated, and that the group does not appear to be currently focusing on Mogadishu.

"There is no doubt the government is facing challenges, its newly trained soldiers have not performed well on the battlefield, and the country is deeply politically divided, but fears about Mogadishu falling are overblown," he wrote in an email. "It is common in the Somali environment, and particularly among international partners, that once a few problems occur in succession, everyone starts to expect the worst."

Still, some State Department officials argue for closing the embassy and withdrawing diplomatic personnel at a controlled pace, to avoid any need for a sudden emergency evacuation, like the one at Kabul's airport in Afghanistan in August 2021.

The State Department is also under pressure to consolidate its embassy operations in Africa, so relocating the diplomatic personnel concerned with Somalia to another part of East Africa, such as Kenya or Djibouti, would serve the goal of cutting costs, the officials said.

Parts of Somalia have split into semi-autonomous regions. Another option reportedly under consideration is moving some facilities and assets to a Soviet-era air base in one of these regions, Somaliland.

Mr. Mohamud recently offered to let the Trump administration take over air bases and seaports, including a base in Somaliland, although his government does not control that region, as Reuters reported in late March.

President Hassan Sheikh Mohamud has reportedly alienated some of his supporters as conditions have deteriorated, amid reports that some Somali forces have not fought against Shabab, an extremist Islamist group.

Mr. Gorka reportedly argued at last week's interagency meeting against reducing the American presence, saying it would be unacceptable to allow Shabab to take control of the country, and proposed instead intensifying strikes targeting the militants.

Any changes would raise complex questions about relations with allies with interests in Somalia.

Ethiopia, the United Arab Emirates, Turkey and Egypt have forces that have also sought to help push back against Shabab, and Kenya has been subjected to external attacks by the armed group.

Scaling back operations would also raise the question of whether the Central Intelligence Agency (CIA) could continue to run a station inside Somalia.

In the Benghazi attack, the militants not only overran the American mission but also shelled a nearby CIA annex.

Still, all these complexities remain secondary in determining the American approach to Somalia.

The American dilemma is this: Should it continue the same approach indefinitely, to at least help keep Shabab somewhat at bay? Should it significantly escalate strikes against the group's members? Or should it scale back while retaining the ability to carry out drone strikes against high-value terrorist targets from more distant bases?

Part of the dilemma is the open question of what Shabab controlling more of Somalia's territory might mean, including whether it would be content to govern the country or would carry out external operations or host groups that do.

Shabab emerged from Somalia's chaotic environment in the mid-2000s and pledged allegiance to Al Qaeda in 2012.

The group, which emerged in the mid-2000s, has previously carried out a series of attacks outside Somalia, including a 2013 mass shooting at the Westgate shopping mall in Nairobi, Kenya, and an attack on a U.S. air base in January 2020 in Manda Bay, Kenya, after the first Trump administration intensified drone strikes targeting the group.

Somalia lies across the Gulf of Aden from Yemen, where the Trump administration has escalated a bombing campaign against Iran-backed Houthi militants, who threaten international shipping routes to and from the Suez Canal.

------------------------------------------

The New York Times