Danica Roem, the first openly transgender person to be elected and serve in a state legislature, was reelected to her Virginia seat on Tuesday.

Roem, a Democrat, bested her Republican opponent Kelly McGinn by a 57-43 margin.

When she was elected in 2017, Roem beat a longtime GOP delegate who led efforts to restrict bathrooms to transgender people.

Her opponent that year, Robert Marshall, sponsored a “Physical Privacy Act,” which was modeled after controversial bathroom legislation passed in North Carolina in 2016.

“Danica inspired trans people across the nation to run for office,” Mayor Annise Parker, president and CEO of LGBTQ Victory Fund said in a statement released Tuesday night.

“Her reelection proves that political revolution is a lasting transformation — not an aberration.”

In the closing days of the campaign, Roem accused her opponent of releasing an anti-trans add that accused Roem of sponsoring a bill “to force all insurance companies to pay for harmful and unnecessary ‘gender transition’ surgeries.”

“Reject Roem’s EXTREME social agenda on Nov. 5th!,” the ad, paid for by The Family Foundation Action, said.