CHICAGO — Luis Robert Jr. hit two home runs against his former team, leading the Mets to a 10-5 victory over the White Sox on Saturday night.

Robert, who spent seven seasons in Chicago before being traded in January, blasted a two-run homer in the third inning and a solo shot in the seventh. He heard boos from the crowd after both homers.

“It feels good to hit homers against any team,” Robert said through an interpreter. “But I will say it did feel good to hit the home runs here, just because it was a stadium that I played so many games in my whole career.”

Robert’s third-inning homer off Luis Castillo gave the Mets a 4-1 lead. He added a solo shot in the seventh off reliever Huascar Brazoban, sending a 98 mph fastball 417 feet to left field. He finished the game with three RBIs.

The loss for the White Sox was their second straight to the Mets, who have now won two in a row. Robert, who was on the injured list for three months this season with a lumbar spine disc herniation, has shown signs of his old self recently, batting .318 with a .682 slugging percentage over his last 14 games.

Castillo, making his fourth start for the White Sox since being acquired from the Mariners on Aug. 1, lasted just 2 2/3 innings, giving up four runs on five hits and striking out three. He has completed five innings only once with Chicago and has allowed five home runs in that span.

“They were taking good at-bats,” Castillo said through a translator. “I was attacking the zone. The best part is that I’m feeling good.”

Robert also made an impact in the field, throwing out Miguel Vargas at first base for his first career outfield assist in left field.

“He got us good today,” White Sox manager Will Venable said. “A couple of really big hits. Really talented player that you make mistakes to him, he’s going to hurt you.”

Mets interim manager Andy Green praised Robert’s performance.

“Really happy for Luis Robert to come here and put two swings on balls like that. That’s got to feel really good,” Green said.

The game also featured a notable performance from Mets catcher Francisco Alvarez, who snapped an 0-for-14 skid with a single in his first at-bat but finished 0-for-4 with three strikeouts. Alvarez has been struggling at the plate, batting .154 in August.

Vientos Nearing Return

Mark Vientos, on the injured list since July 10 with a fractured right hand, began a minor league rehab assignment Friday with Double-A Binghamton. He is expected to rejoin the Mets at some point next week.

“It definitely sucks because I want to be with the team and play with the guys,” Vientos said. “I’ve been hit in the hand before. I started to realize this [injury] was different when I was on first base and the hand started to feel a little numb.”

Interim manager Andy Green expressed sympathy for the 26-year-old infielder, who is hitting .211 with 11 home runs and 35 RBIs this season.

“I’m just disappointed for him today, honestly,” Green said.