WASHINGTON (AP) — Muriel Bowser has won the Washington, D.C., Democratic mayoral primary, defeating incumbent Vincent Gray in a race defined by a scandal involving Gray's campaign four years ago.

Bowser tapped Tuesday into an electorate that tired of the allegations surrounding Gray, whose associates have been convicted of involvement in an illegal fund that aided his 2010 campaign.

Bowser is a D.C. councilmember and a protege of former Mayor Adrian Fenty, whom Gray defeated in 2010.

She will face independent D.C. Councilmember David Catania in what could be an unusually competitive general election in November. The Democratic primary winner has gone on to win every general election since the U.S. capital began electing a mayor 40 years ago.