The Washington Capitals ­acquired defenseman Brenden Dillon from the San Jose Sharks on Tuesday, bolstering a struggling blue line in exchange for a 2020 second-round draft pick originally acquired from Colorado and a conditional 2021 third-round pick.

Dillon, 29, is a physical player at 6-foot-4 and 225 pounds, and while he shoots left-handed, he has experience playing on both sides of the ice. He could slot in alongside John Carlson on the Capitals’ top defensive pairing or next to Dmitry Orlov on the second. Dillon is in the final year of a five-year contract and can become an unrestricted free agent July 1.

The Sharks will retain 50 percent of Dillon’s remaining salary cap hit, which was $3.27 million for the full season.

“Brenden is an experienced defenseman who plays a solid defensive game with a high compete level and physicality,” Capitals General Manager Brian MacLellan said in a statement released by the team. “We felt it was important for us to add a player of his caliber to our defensive group."

The condition on Washington’s 2021 third-round pick is also intriguing. If the Capitals win the Stanley Cup this season, the Sharks instead will receive the 2020 third-round pick that Washington previously acquired in a trade with Arizona, according to CapFriendly.com.

Dillon has one goal, 13 assists and 178 hits in 59 games this season, and he has 114 points (22 goals, 92 assists) in 588 career games across nine seasons with the Sharks and Dallas Stars. He has a plus-minus rating of zero this season and ranked second among San Jose defensemen with a Corsi for percentage of 51.7, meaning the Sharks took 51.7 percent of the shots when he was on the ice at even strength.

With the Sharks in sixth place in the Pacific Division and Dillon’s contract set to expire, he was a logical candidate to be traded. According to reports, the Vegas Golden Knights, Boston Bruins and St. Louis Blues also had interest in him.

“Really excited, yeah,” Dillon told reporters in San Jose on Tuesday. “I can’t wait to get out there. Obviously the opportunity, the team, the group … definitely couldn’t be happier to get going.”

This is the sixth straight season the Capitals have acquired a defenseman ahead of the trade deadline, which this year arrives Monday. Last season, they picked up Nick Jensen from Detroit; in 2018, they got Chicago’s Michal Kempny, who joined Carlson on the top pairing. MacLellan has spoken this season about wanting to acquire depth as the campaign progresses.

After the additions of Radko Gudas in the offseason and Jensen at the trade deadline last year, the Capitals were hoping one or the other would take control of the second-pairing role alongside Orlov. Jensen appeared to do so over the past couple of months, but the addition of Dillon will give the Capitals another option as they make their final push to the postseason. The Capitals are 11-11-0 since Dec. 23 and have allowed nearly 3.5 goals per game during that span.

Dillon will wear No. 4 for the Capitals, the same number he wore with San Jose.

More on the Capitals: