SAN FRANCISCO -- San Francisco Supervisor Scott Wiener held a narrower than expected lead over Supervisor Jane Kim in the hotly contested primary Tuesday for state Senate District 11 representing San Francisco and northern San Mateo County, setting up another election between the two in November.
RELATED: Bay Area voting guide: June 7, 2016
With 594 of 645 precincts in the district reporting as of midnight, Wiener has received 46.2 percent of the vote to Jane Kim's 44 percent overall, according to the California Secretary of State's Office.
Wiener's lead is strongest in San Mateo County, where he had won 46.43 percent of the vote to Kim's 37.33 percent with 34 of 48 precincts counted, according to San Mateo County elections officials. In San Francisco, the two are at 46.1 percent to 44.4 percent with all precincts counted.
Wiener and Kim are expected to face off again on the November ballot under California's top-two candidate open primary system for statewide offices. They are vying to replace termed-out state Sen. Mark Leno.
RELATED: AP reports Hillary Clinton has delegates to secure nomination
While both are Democrats, Kim is part of the city's progressive faction, while Wiener is considered more moderate, and the two have labored to emphasize their differences during the hard-fought primary campaign.
Wiener, who entered the race first and received most of the big name Democratic Party endorsements, has been widely viewed as the favorite to win. Known for his strong support of public transit and environmental issues, he has staked out positions in favor of cleaning up homeless tent encampments and in support of recently removed police Chief Greg Suhr, who came under fire for fatal police shootings.
His recent legislative accomplishments include a city policy requiring employers to provide paid parental leave and a requirement that developers include solar panels in new buildings.
Kim's campaign received a recent boost due to endorsements by Democratic presidential candidate U.S. Sen. Bernie Sanders and state Democratic Party chairman John Burton. She has drawn headlines for her criticism of the city's expenditures on Super Bowl celebrations and for being the first supervisor to call for Suhr to step down.
RELATED: Nancy Pelosi endorses Hillary Clinton for president
In addition, she introduced a measure on today's ballot raising the affordable housing requirement for new developments to 25 percent and recently introduced legislation that would make City College of San Francisco free for city residents.
Speaking Tuesday night at her campaign party, Kim said city progressives were in a "long game," as they fought not only for the state Senate seat but also for the Democratic Central Committee and the Board of Supervisors, which has a number of seats open in the November election.
"We know that we represent the majority of San Franciscans," Kim said.
Wiener thanked voters on Twitter for their support and said he was honored to come in first place in the primary.
"Onward to November & victory," he said.
RELATED: Bernie Sanders, Hillary Clinton talk Donald Trump in California campaigns
For full coverage on the presidential election, click here.
Have you voted? Share your pictures with us on social media using #abc7now!
Wiener, Kim head to Nov. rematch for District 11 state senate seat