Progressive activist William Lawrence has defeated Republican Rep. Tom Barrett in Michigan's 7th Congressional District, NBC News projects, prevailing in one of the most competitive House races in the country.

The outcome represents an uncommon win for the Democratic Party's left flank in a true battleground. Progressive candidates have largely concentrated their gains in safely blue districts and cities rather than swing territory.

The race unfolded against a backdrop of voter frustration with the economy under President Donald Trump and mounting local backlash to data center development. Lawrence, a co-founder of the Sunrise Movement, built his campaign around opposition to local data center projects and controversial Flock cameras, and he also called for tight restrictions on artificial intelligence development.

Lawrence reached the general election after winning a divisive primary with less than 50% of the vote. In a September interview with NBC News, he described the rising resistance to data centers as coming "at this moment in our history [where] the extreme concentration of power may be the single greatest threat that we face, and the place where it is concentrated is in these tech companies and their allies at the very heights of government."

The candidate also faced scrutiny over deleted social media posts, including one written during the pandemic that read "F, isolation and the nuclear family domicile." He distanced himself from some earlier positions and said he let his membership in the Democratic Socialists of America lapse in July, explaining that he was not running as a DSA candidate because "partisan and ideological labels .. do a lot more to divide us than they do to bring people together."

Barrett, a first-term congressman and Army veteran who previously served in the state Legislature, argued Lawrence was too far left for a district that backed Trump in 2024 and was previously represented by Democratic Sen. Elissa Slotkin. Barrett won his own 2024 race by 3 points.

As the political environment turned against Republicans, with voters souring on the economy and the war with Iran, Barrett sought distance from the president. He was an early Republican supporter of war powers resolutions aimed at limiting the president's authority in Iran, and he introduced legislation that would bar the federal government from overriding localities on data centers, a step Lawrence said fell short of meaningfully regulating their development.

Barrett also broke with Trump's remark that the only reason a community would reject a data center is a desire to end up "backwards and poor." "I don't agree with it," Barrett told NBC News in September. "I think that ultimately this decision has to rest with the people who live in those communities, and I respect that."

The candidates clashed over AI policy in a debate last month. Lawrence called for a pause on AI advancements, citing whistleblowers who have raised alarms about the technology's dangers, while Barrett emphasized the need for "robust protections" and contended that a pause would only strengthen American adversaries.