Bercovici throws for 242 yards, No. 17 Arizona State runs past No. 23 Stanford, 26-10

Arizona State running back D.J. Foster (8) carries against Stanford during the first half of an NCAA college football game, Saturday, Oct. 18, 2014, in Tempe, Ariz. (AP Photo/Rick Scuteri) (The Associated Press)

Arizona State wide receiver Jaelen Strong (21) makes a catch over Stanford cornerback Ronnie Harris (21) during the first half of an NCAA college football game, Saturday, Oct. 18, 2014, in Tempe, Ariz. (AP Photo/Rick Scuteri) (The Associated Press)

Mike Bercovici threw for 242 yards and a touchdown, Zane Gonzalez kicked four second-half field goals and No. 17 Arizona State cleared a big hurdle by running past No. 23 Stanford, 26-10 on Saturday night.

The Cardinal had become a nemesis of sorts for Arizona State, powering past the Sun Devils in two games last season, including a dominating win in the Pac-12 Championship game.

Arizona State (5-1, 3-1 Pac-12) turned the tables against Stanford with an efficient performance on both sides of the ball.

The Sun Devils scored the most points allowed by the nation's top-rated defense behind a nice mix of run and pass, while its defense refused to get pushed around by bigger Cardinal up front.

Stanford (4-3, 2-2) labored offensively again and nearly tripled its nation-leading average of 10 points allowed per game on defense.