PHILADELPHIA (AP) — Juan Soto hit a three-run homer in the 10th inning and the Washington Nationals rallied from a five-run deficit to beat the Philadelphia Phillies 10-6 on Tuesday night.

Bryce Harper crushed a three-run homer off former teammate Stephen Strasburg, but Victor Robles tied it at 6 on a solo shot off Edubray Ramos with two outs and two strikes in the ninth.

Ramos hadn’t pitched in six days and has one career save but Phillies manager Gabe Kapler brought him in to protect a one-run lead.

Aaron Nola took a four-run lead into the seventh before giving up a two-run homer to Yan Gomes and a solo shot to pinch-hitter Howie Kendrick.

Brian Dozier and Anthony Rendon hit consecutive singles off Jose Alvarez (0-1) to start the 10th and Soto followed with a towering shot over the right field foul pole. A video review upheld the fair call. Robles added an RBI double in the inning.

Sean Doolittle (3-0) got five outs for the win.

Nola, who finished third in NL Cy Young Award voting last year, gave up five runs — four earned — and seven hits in 6 1/3 innings. He has a 6.46 ERA after three starts.

Strasburg allowed six runs and six hits in four innings. He was 5-0 with a 1.58 ERA over 10 career starts in Philadelphia before getting roughed up.

Maikel Franco tied it at 1 in the third with his fourth homer, all batting out of the eighth spot in the lineup. He hit in the middle of the order most of his career until this season. Strasburg then lost control of the strike zone. He walked Nola and Jean Segura before throwing three straight changeups in the same spot to Harper. The slugger missed one, fouled one and then blasted his fourth homer to left-center.

Segura lined a two-run triple to right to extend the lead to 6-1 in the fourth.

Harper, who spent his first seven seasons in Washington before signing a $330 million, 13-year contract with the Phillies last month, hit a homer in his first game against his old team last week.

HELP ON THE WAY?

Nationals general manager Mike Rizzo said the team is considering signing veteran reliever Bud Norris. The righty was released by Toronto in spring training. He had 28 saves for the Cardinals last season.

TRAINER’S ROOM

Nationals: SS Trea Turner (broken right index finger) missed his sixth game. He’s on the 10-day injured list and it’s uncertain when he’ll return.

Phillies: OF Roman Quinn (right oblique strain) will continue his rehab work in the minors.

UP NEXT

RHP Jeremy Hellickson (0-0, 9.00 ERA) starts for the Nationals against his former team Wednesday night. RHP Nick Pivetta (1-0, 6.52) goes for the Phillies. Hellickson was Philadelphia’s opening day starter in 2016 and 2017 and was 18-15 in 52 starts with Philadelphia. Pivetta is 1-4 with a 9.93 ERA in seven appearances against Washington.