TOTAL DOMINATION:Cliff Lee was able to get some revenge on San Francisco, who beat him twice during the World Series last year, by striking out eight batters

The Philadelphia Phillies’ Cliff Lee pitches against the San Francisco Giants during their game at AT&T Park on Thursday in San Francisco.

Photo: AFP

Philadelphia’s Cliff Lee threw a shutout to give the Phillies a 3-0 win over the San Francisco Giants in Thursday’s clash of National League divisional leaders.

Lee threw a seven-hitter, while Hunter Pence and John Mayberry hit back-to-back home runs for Philadelphia.

Lee (11-7) was commanding in his first regular-season start against the Giants in two years, striking out eight, including Cody Ross four times, while not walking a batter.

Lee set down 10 straight at one point in his major league-leading fifth shutout of the season.

Lee lost twice to the Giants in last year’s World Series pitching for Texas.

Hunter Pence had three hits and drove in two runs and is hitting .360 (9 for 25) since joining the Phillies from Houston. He ended a 19-game, 67-at-bat homerless drought when he connected on Madison Bumgarner’s first pitch in the second inning.

John Mayberry followed immediately with another homer.

Bumgarner (6-11) retired 13 of 14 following Mayberry’s blast and went eight innings.

Cardinals 7, Marlins 4

In Miami, Albert Pujols hit his 25th home run of the season and finished a triple shy of the cycle, powering St Louis past Florida.

Pujols came into the game only 1 for 14 on the Cardinals’ road trip. He walked and scored in the first inning, singled and scored in the third, homered in the fourth and doubled in the sixth.

The Cardinals’ David Freese was hit on the helmet by a pitch with the bases loaded in the third inning. It put the Cardinals ahead 4-3, but Freese left the game with a mild concussion and a bruise.

In a further casualty, Marlins second baseman Omar Infante broke his right middle finger diving for a ground ball in the third.

In Pittsburgh, Pennsylvania, Carlos Pena hit one of Chicago’s three home runs and walked with the bases loaded during a three-run eighth-inning rally that lifted the Cubs over Pittsburgh and to a season-best fifth straight win.

Pena, Geovany Soto and Blake DeWitt homered to give Chicago 10 long balls in the four-game sweep, the Cubs’ first in Pittsburgh in 52 years.

The Pirates — in first place in the NL Central 10 days ago — have lost a season-worst seven consecutive games.

Pittsburgh reliever Daniel McCutchen (3-3) came to the mound in the eighth and did not retire any of the three batters he faced: All of them scored.

Chicago reliever Jeff Samardzija (6-4) pitched a scoreless seventh to earn the win, while Carlos Marmol worked a perfect ninth for his fourth save in the past five days.

In other NL action, it was:

‧ Rockies 6, Nationals 3

AMERICAN LEAGUE

AP, DETROIT, Michigan

Rangers pitcher Alexi Ogando defeated Detroit for the third time this season, leading Texas to a 5-2 victory in a clash of divisional leaders on Thursday.

Ogando (11-5) allowed two runs over 6-1/3 innings. He has allowed just three earned runs in 21 innings against Detroit for a 1.29 ERA.

Texas added three runs in the fourth on RBI singles by Mike Napoli and Ian Kinsler, as well as a sacrifice fly by Endy Chavez.

Detroit starter Brad Penny (7-9) took the loss, giving up five runs in 6-2/3 innings.

Yankees 7, White Sox 2

In Chicago, Ivan Nova struck out a career-high 10 as New York completed a four-game sweep of Chicago.