Bay Area employers slashed thousands of jobs in July, an unsettling economic setback that suggests that the waves of layoffs in the struggling tech industry are more broadly affecting the region’s employment prospects.

Much of last month’s job losses in the Bay Area resulted from big employment cuts in the South Bay and the San Francisco metro area, according to a new state reported released Friday.

“The Bay Area economy has been struggling, and monthly job growth has been unsteady for nearly two years now,” said Scott Anderson, BMO Capital Markets chief U.S. economist. “Tech layoffs have been a consistent and unrelenting theme.”

The Bay Area lost 3,400 jobs in July, which marked two consecutive months of staffing reductions for the nine-county region, according to figures posted by the state Employment Development Department.

The worst of the job losses in the Bay Area last month occurred in the two urban centers with the largest concentration of tech companies, according to the state’s monthly report on the California job market.

The South Bay lost 1,300 jobs last month. However, the region’s worst job losses surfaced in the San Francisco-San Mateo metro area, which shed 2,000 jobs, the state report showed.

The East Bay managed a gain of just 300 jobs, indicating that the Alameda County-Contra Costa County area is losing steam.

Tech companies slashed a net total of 2,300 jobs in the Bay Area during July, according to this news organization’s compilation of seasonally adjusted industry numbers that Beacon Economics derived from the state report.

“The tech layoffs continue to restrain job growth in the region,” said Steve Levy, director of the Palo Alto-based Center for Continuing Study of the California Economy.

Here’s how the Bay Area’s three largest metro areas fared in terms of net changes in job totals for the tech industry, according to the Beacon assessment:

— The San Francisco-San Mateo region experienced the worst of the tech sector job losses in July. The San Francisco metro area lost a net total of 900 tech jobs.

— The South Bay lost 800 tech jobs in July.

— The East Bay shed 700 tech jobs.

“Our driving industries like tech are still doing some rebalancing and streamlining as they pursue clean energy, electric vehicles, battery technology and artificial intelligence,” said Russell Hancock, president of Joint Venture Silicon Valley, a San Jose-based think tank.

During the two years of coronavirus-triggered business shutdowns ordered by state and local government agencies, tech hiring boomed to meet the demand for remote work and distance learning.

As workers gradually returned to the office, however, demand for remote devices and services waned. Tech companies found that they had a surplus of employees.

At the same time, tech companies galloped into the promising artificial intelligence field. This shift has triggered even more layoffs as tech companies trim unwanted units and workers to chase the opportunities in AI.

“The tech layoffs in 2022 and 2023 were expected, the result of a high level of over-hiring by firms,” said Michael Bernick, an employment attorney with law firm Duane Morris and a former state employment department director. “The current level of tech layoffs is beyond expectations and may represent structural shifts. It is too early to tell.”

The brutal job market in the San Francisco metro area has weighed down the entire Bay Area.

Here is how the Bay Area and its three largest metro areas have fared over the first seven months of 2024:

— The Bay Area has gained 1,600 jobs.

— The East Bay is the most robust region in the Bay Area, adding 7,000 jobs.

— The South Bay has added 3,800 positions.

— The San Francisco-San Mateo region lost 11,200 jobs, while the San Francisco metro area has lost jobs each month this year.

“The San Francisco area is reporting a decline of jobs in each of the past six months after some modest gains in late 2023 and is the only metro area in California that has experienced no job expansion in the past 12 months,” said Jeffrey Michael, a Stockton-based economist with the University of the Pacific.

The employment picture was considerably brighter in the rest of the state when compared with the Bay Area, the EDD report showed.

California added 21,100 jobs in July, which marked five straight months of employment gains in the nation’s largest state.

The statewide unemployment rate in July remained unchanged from June at 5.2%. The current California figures, however, are far worse than the record-low 3.8% state unemployment rate in August 2022.

With the tech industry struggling in the near term, economists suggested that the Bay Area should use the current sluggishness in the sector to plan for the future.

“The key going forward is to make the region competitive for the coming renewal of tech job growth,” Levy said.

Of particular concern is the inability of political and business leaders to make any meaningful headway in assuring a plentiful housing supply and finding solutions to the region’s seemingly intractable traffic woes.

“Long term, we’re well positioned to be competitive,” Hancock said. “If folks really want to worry about the economy, I suggest they focus on our chronic housing shortages.”

In the short term, however, the Bay Area’s employment struggles might persist for a while.

“We would anticipate slow to no growth for the remainder of the year as the tech economy rebalances and the overall business climate of the state continues to be scrutinized by business leaders,” said Jeff Bellisario, executive director of the Bay Area Council Economic Institute.