Former Deputy City Commissioner Tracey L. Gordon defeated Register of Wills Ron Donatucci in the Democratic primary Tuesday, denying his bid for an 11th term in the office.

Donatucci’s loss marks the end of an era. The South Philadelphia politician has been the register of wills since 1980.

With 98 percent of the votes in, Gordon was leading Donatucci by 6,700 votes. Former Deputy Sheriff Jacque Whaumbush finished third.

Neither Gordon, 57, nor Donatucci, 71, could be reached for comment.

Gordon took to Twitter to thank her supporters.

The office, which has a $4 million annual budget and about 70 employees, is charged with receiving wills for probate; maintaining wills and estate records; collecting inheritance taxes; and issuing marriage licenses.

>> READ MORE: Jim Kenney wins Democratic mayoral primary

Gordon and Whaumbush both failed to file required campaign finance reports. Gordon told a reporter last week that she had raised $2,000.

Donatucci has faced some controversies in recent years, including a state auditor general investigation that found cash was stolen from the marriage license bureau, and issues with forged wills and notary signatures.

Gordon previously worked as the deputy to City Commissioner Stephanie Singer, and was fired in 2014 after the Ethics Board impounded her office computer and found that she had engaged in prohibited political activity. The board fined her $2,201 She called the firing a “political hit job” and denied the charges.

While the investigation was still active in 2015, Gordon unsuccessfully ran for commissioner in the Democratic primary. Later that year, she ran as an independent for the state House and also lost.

>> READ MORE: Blackwell political dynasty falls in West Philly, but incumbents dominate other City Council district races

Since then, she has worked as a consultant for the Woodland, Chester and Elmwood Avenue business corridors.

As in the sheriff’s race, no Republicans ran for the job, so Gordon will only have an opponent in November if a candidate makes an independent bid.

>> READ MORE: Party-backed millennials come out on top in at-large City Council primary races