Democratic U.S. Senate candidate, Rep. Chris Van Hollen, D-Md., speaks at an election night party in Bethesda, Md., Tuesday, April 26, 2016. Van Hollen defeated Rep. Donna Edwards, D-Md., in the Democratic primary for U.S. Senate. (AP Photo/Patrick Semansky)

ANNAPOLIS, Md. (AP) — Rep. Chris Van Hollen has won the Democratic nomination for U.S. Senate in Maryland.

Van Hollen won Tuesday night after a long and heated primary against Rep. Donna Edwards for the seat opening due to Sen. Barbara Mikulski’s retirement at the end of her term.

The campaign became a polarizing battle over race, gender and personality as the two candidates sought to succeed Mikulski, the nation’s longest-serving female senator. Both candidates represent House districts that include the suburbs of the nation’s capital.

Van Hollen ran on his record as a pragmatic progressive who is able to reach across the political aisle to get things done. Edwards campaigned as a candidate more committed to holding liberal principals without settling for political deals.