Convicted leaker Chelsea Manning was soundly defeated in the Democratic primary for the Maryland Senate seat.

Incumbent Democratic Senator Ben Cardin received 450,890 votes - just over 80 percent of those cast - compared to Manning's 32,201, or 5.7 percent. Cardin faces Republican Tony Campbell in the November general election. Campbell won a close GOP primary, receiving 29 percent of the vote, or 49,428 votes.

Manning, 30, entered the race in January in a bid to become the first transgender member of Congress. Then known as Bradley Manning, the former military analyst was convicted in 2013 of supplying thousands of documents to anti-secrecy website WikiLeaks. She was originally sentenced to 35 years in prison, serving seven years before President Barack Obama commuted the remainder.

Her campaign platform included LGBT rights, closing prisons and freeing inmates, the abolition of Immigration and Customs Enforcement and eliminating national borders.

In May, Manning drew attention after she complained the primaries were "rigged" and that people were "not interested in voting, or elections or civil discourse anymore." She then tweeted a photo of her apparently standing on an upper-story window ledge.

A message sent through Manning's twitter account later said she was recovering "in the company of friends" and thanked everyone for their "well-wishes and support."

Before the primary, Manning said she had "stepped back" from campaigning for her own well-being.

"I found the space and the treatment I need to heal, with close friends by my side to provide love and support. I'm grateful for everyone who believed in me, including the more than one thousand individual donors who generously contributed to our campaign," she said.