CHASIV YAR, Ukraine — Ukrainian President Volodymyr Zelensky vowed Monday to not retreat from Bakhmut as Russian forces encroached on the devastated eastern city they have sought to capture for six months at the cost of thousands of lives.

Less than a week ago, an advisor to Zelensky said the defenders might give up on Bakhmut and fall back to nearby positions.

But the president on Monday chaired a meeting in which top military brass “spoke in favor of continuing the defense operation and further strengthening our positions in Bakhmut.” Later in his nightly video address, Zelensky reported that his advisors unanimously agreed to press on with the fight, “not to retreat” and to bolster Ukrainian defenses.

His top advisor, Mykhailo Podolyak, told the Associated Press that Ukrainian forces around Bakhmut have been grinding down enemy forces, reinforcing their positions and training tens of thousands of Ukrainian military personnel for a possible counteroffensive.

Intense Russian shelling targeted the city in the Donetsk region and nearby villages as Moscow waged a three-sided assault to try to finish off Bakhmut’s resistance.

The nearby towns of Chasiv Yar and Kostiantynivka came under heavy shelling that damaged cars and homes and sparked a fire. No casualties were immediately reported.

Police and volunteers evacuated people from Chasiv Yar and other front-line towns in an operation made difficult by the loss of bridges and constant artillery fire that has left barely a house standing.

Russian forces have been unable to deliver a knockout blow that would allow them to seize Bakhmut. Analysts say that the city does not hold major strategic value and that its capture would be unlikely to serve as a turning point in the conflict.

The Russian push for Bakhmut reflects the Kremlin’s broader struggle to achieve battlefield momentum. Moscow’s full-scale invasion on Feb. 24, 2022, soon stalled, and Ukraine launched a largely successful counteroffensive. Over the bitterly cold winter months, the fighting largely has been deadlocked.

The city’s importance has become mostly symbolic — for Russian President Vladimir Putin, prevailing there would finally deliver some good news from the battlefield, while for Kyiv the display of grit and defiance reinforces a message that Ukraine is holding on after a year of brutal attacks, justifying continued support from its Western allies.

U.S. Defense Secretary Lloyd J. Austin III endorsed that view Monday, saying during a visit to Jordan that Bakhmut has “more of a symbolic value than … strategic and operational value.”

He added that Moscow is “continuing to pour in a lot of ill-trained and ill-equipped troops” in Bakhmut, whereas Ukraine is patiently “building combat power” elsewhere with Western military support ahead of the launch of a possible spring offensive.

Even so, some analysts questioned the wisdom of the Ukrainian defenders holding out much longer, with others suggesting a tactical withdrawal may already be underway.

Michael Kofman, the director of Russia studies at the Center for a New American Security think tank in Arlington, Va., said that Ukraine’s defense of Bakhmut has been effective because it has drained the Russian war effort, but that Kyiv should now look ahead.

“I think the tenacious defense of Bakhmut achieved a great deal, expending Russian manpower and ammunition,” Kofman tweeted Sunday. “But strategies can reach points of diminishing returns, and given Ukraine is trying to husband resources for an offensive, it could impede the success of a more important operation.”

The Institute for the Study of War, a Washington-based think tank, noted that urban warfare favors the defender but considered that the smartest option now for Kyiv may be to withdraw to positions that are easier to defend.

“Ukrainian forces are unlikely to withdraw from Bakhmut all at once and may pursue a gradual fighting withdrawal to exhaust Russian forces through continued urban warfare,” the institute said in an assessment published late Sunday.

The Bakhmut battle has also served to expose Russian military shortcomings and bitter divisions.

Yevgeny Prigozhin, the owner of the Wagner Group private military contractor that spearheaded the Bakhmut offensive, has been at loggerheads with the Russian Defense Ministry and repeatedly accused it of failing to provide his forces with ammunition.

Bakhmut has taken on almost mythic importance. It has become like Mariupol — the port city in the same province that Russia captured last year after an 82-day siege that saw determined Ukrainian fighters hold out, along with civilians, at a mammoth steel mill before eventually surrendering.

In Mariupol, Moscow has moved to cement its rule. Russian Defense Minister Sergei Shoigu toured some of the war-torn city’s rebuilt infrastructure — a newly built hospital, a rescue center and residential buildings — the Defense Ministry reported Monday.

Meanwhile, Russian forces attacked central and eastern regions of Ukraine with Iranian-made Shahed drones, said an Ukrainian air force spokesman, Yurii Ihnat. Of 15 drones Russia launched, 13 were shot down, Ihnat said. It wasn’t immediately clear whether the attack caused damage.

Russia shot down three missiles over its Belgo- rod region, which borders Ukraine, Gov. Vyacheslav Gladkov said on the messaging app Telegram. Debris injured one person and damaged power lines and facades of residential buildings, he said. Gladkov did not specify whether the missiles were fired from Ukraine.

Chernov writes for the Associated Press.