Jimmy Garoppolo threw a touchdown pass on his first full drive after replacing an injured Trey Lance and ran for another score to help the San Francisco 49ers beat the Seattle Seahawks 27-7 on Sunday.

Lance broke his right ankle on the second drive of the game, a season-ending injury for the 22-year-old who was given the keys to San Francisco's offense this season. He was taken off the field on a cart, his injured ankle in an air cast.

CLICK HERE FOR MORE SPORTS COVERAGE ON foxnews.1eye.us

Niners celebrate with Jimmy Garoppolo

Jimmy Garoppolo #10 of the San Francisco 49ers reacts after scoring a touchdown against the Seattle Seahawks during the fourth quarter at Levi's Stadium on September 18, 2022 in Santa Clara, California. (Thearon W. Henderson/Getty Images)

That set the stage for Garoppolo to come in and reclaim the job he held for most of the past four seasons as the surprising decision to keep Garoppolo on a reduced contract paid nearly immediate dividends for the Niners.

He completed his first five passes in his first game since last season's NFC title game, including a 38-yard touchdown pass to Ross Dwelley that put San Francisco (1-1) up 13-0.

The Niners mostly coasted from there as the Seahawks (1-1) looked rather flat six days after their emotional, season-opening victory over former quarterback Russell Wilson and the Broncos.

Geno Smith went 24 for 30 for 198 yards and an interception. Seattle also had a trick play near the goal line backfire for another turnover and rushed for only 35 yards on the day.

Lance took over the starting job this season from Garoppolo after being drafted third overall in 2021. San Francisco traded three first-round picks to move up nine spots to take Lance, making a major investment in him.

Lance spent his rookie season mostly on the bench watching Garoppolo as the Niners went all the way to the NFC title game before losing to the Rams.

San Francisco planned to trade Garoppolo this offseason but was unable to after he underwent shoulder surgery in March.

Garoppolo remained on the roster but didn’t practice with the team at all during training camp, throwing on his own on a side field, before agreeing to return as a backup on a reduced contract.

Garoppolo went 13 for 21 for 154 yards and the TD. He iced the game with a 1-yard sneak late in the fourth quarter.

Trey Lance carted off

San Francisco 49ers quarterback Trey Lance (5) gestures while being carted off the field during the first half of an NFL football game against the Seattle Seahawks in Santa Clara, Calif., Sunday, Sept. 18, 2022. (AP Photo/Tony Avelar)

49ERS' TREY LANCE CARTED OFF THE FIELD WITH ANKLE INJURY

BLOCKED

The Seahawks got on the board in the third quarter thanks to their special teams. Tariq Woolen blocked a 20-yard field goal attempt by Robbie Gould, and Michael Jackson scooped it up and ran 86 yards for the score.

VERSATILITY

Dwelley had a big day on offense and special teams. Along with the TD catch from Garoppolo, Dwelly also recovered a muffed punt after Tarvarius Moore pushed blocker Xavier Crawford into returner Tyler Lockett.

Dwelley was the first player in the NFL to catch a TD pass and recover a fumble by the opponent in the same game since teammate Kyle Juszczyk did it against Atlanta on Dec. 15, 2019.

That recovery set up Juszczyk's 1-yard run that made it 20-0 at the half.

TRICKED UP

The Seahawks called for a trick play in the second quarter that they immediately regretted. DeeJay Dallas took a handoff following a direct snap to Kenneth Walker III and tried to force a pass into the end zone to DK Metcalf. Charvarius Ward was right there for his first interception for San Francisco.

INJURIES

Seahawks: DL Shelby Harris (glute) left the game in the first half and didn't return. ... G Damien Lewis (thigh) also got hurt and didn't return.

49ers: TE Tyler Kroft (knee) left the game in the second half and didn't return.

Trey Lance carried off field

San Francisco 49ers quarterback Trey Lance (5) is helped onto a cart during the first half of an NFL football game against the Seattle Seahawks in Santa Clara, Calif., Sunday, Sept. 18, 2022. (AP Photo/Tony Avelar)

CLICK HERE TO GET THE FOX NEWS APP

UP NEXT

Seahawks: Host Atlanta on Sunday.

49ers: Visit Denver on Sunday night.