Rob Schumacher-USA TODAY Sports

Jimmy Garoppolo tied a career high with four touchdown passes as the San Francisco 49ers defeated the Arizona Cardinals 38-10 Monday night in Mexico City.

The 49ers (6-4) won their third consecutive game to move into a tie with idle Seattle for first place in the NFC West.

Garoppolo completed 20 of 29 passes for 228 yards and threw two TD passes apiece to Brandon Aiyuk and George Kittle.

San Francisco's other touchdown came on a 39-yard run by wide receiver Deebo Samuel.

The Cardinals (4-7) played without starting quarterback Kyler Murray for the second straight game because of a hamstring injury.

Veteran Colt McCoy, who guided Arizona to a victory against the defending Super Bowl champion Los Angeles Rams last week, had no such luck at Estadio Azteca. McCoy was 24-of-34 passing for 218 yards with one interception.

The Cardinals held a 3-0 lead after one quarter on a 40-yard field goal by Matt Prater before the 49ers got acclimated to the elevation change and the slippery turf from a downpour that began just before the opening kickoff.

San Francisco outscored the Cardinals 31-7 over the next two quarters to pull away.

Garoppolo threw TD passes of 7 yards to Aiyuk and 39 yards to Kittle before Arizona scored its lone touchdown on a 2-yard run by James Conner.

The 49ers' Robbie Gould converted a 39-yard field goal with 43 seconds left in the half to make it 17-10.

Samuel scored on an end-around on San Francisco's opening drive of the second half, then Garoppolo threw two more scoring strikes, hitting Aiyuk from 13 yards and Kittle from 32, the latter early in the fourth quarter.

Elijah Mitchell led the 49ers with 59 yards rushing on nine attempts. Christian McCaffrey added 39 yards on seven carries and made seven receptions for 67 yards, matching Samuel for the team lead in receptions.

Conner carried 14 times for 42 yards for the Cardinals. DeAndre Hopkins and Greg Dortch each had nine catches, racking up 91 and 103 yards, respectively.

It was a rematch of a 2005 contest at the same stadium that was the NFL's first regular-season game played outside the United States.

More must-reads:

TODAY'S BEST
Mavericks provide notable status update on star rookie ahead of Game 5
Watch: Benches clear after Giants buzz Bryce Harper
Wizards make decision on their new head coach
Veteran sportscaster gives valuable insight into Caitlin Clark's WNBA debut
Patriots QB Jacoby Brissett addresses 'elephant in the room'
Iga Swiatek, Naomi Osaka have opposite reactions to crowd following epic French Open match
AEW owner stays quiet on potential interest in top WWE star
Donovan Mitchell's influence on Cavaliers listed among 'most powerful' in the NBA
Clippers 'determined' to keep these two star free agents
AEW sustains another major injury blow after Double or Nothing
Celtics HC Joe Mazzulla offers update on Kristaps Porzingis ahead of NBA Finals
Bengals HC Zac Taylor addresses holdouts from pair of star receivers
Charges against Scottie Scheffler dropped
Yankees icon respects Juan Soto holding out for free agency
Kyrie Irving praises Karl-Anthony Towns for overcoming 'unfair criticism' in Game 4
Cardinals star addresses struggles: 'I don't know what the answers are'
Manchester United star taking break from social media after challenging season
Jets HC explains how former Pro Bowl RB could help team
What Anthony Edwards told Cowboys star after Game 4 win
Bronny James' agent provides huge update on client's future