WATCH: Josh Rosen scores first-career victory as NFL starting quarterback

SANTA CLARA, Calif. (AP) — Josh Rosen threw a 75-yard touchdown pass to fellow rookie Christian Kirk on Arizona’s first play from scrimmage and the Cardinals used five takeaways to get their first win by beating the San Francisco 49ers 28-18 on Sunday.

The Cardinals (1-4) were unable to do much more on offense the rest of the way, with their only other scores coming on Josh Bynes‘ fumble return for a TD and David Johnson TD runs on two short drives after turnovers by the 49ers (1-4).

But that proved enough against a San Francisco offense that did little after an opening drive score behind backup quarterback C.J. Beathard.

Beathard completed all five passes on the opening drive — four of which were behind the line — and gave San Francisco a 6-0 lead on a 5-yard shovel pass to Matt Breida. The Niners botched the extra point and were trailing for good 10 seconds later.

Rosen dropped back and launched a deep throw to Kirk, who was wide open down the middle of the field because free safety Adrian Colbert took a bad angle on the play.

Patrick Peterson recovered a fumble by Raheem Mostert and returned it 49 yards to the San Francisco 18, setting up David Johnson’s 2-yard run that made it 14-6.

The Niners finally scored again on a fourth-and-1 pass from Beathard to Trent Taylor with 6:51 to play. But San Francisco couldn’t convert the 2-point try and fell to 1-12 over the past two seasons without Jimmy Garoppolo as starting quarterback.

The Cardinals sealed the game when Haason Reddick knocked the ball out of Beathard’s hand and Bynes returned it for a 23-yard score that gave Arizona its seventh straight win in the series.

Rosen got the win in his second start of the season despite completing just 10 of 25 passes for 170 yards.