TEMPE — The nightmare is over.

Arizona State dominated Arizona for four quarters tonight at Sun Devil Stadium, topping Arizona 58-21 for its second straight Territorial Cup victory over the Wildcats.

It was all Sun Devils from the opening whistle.

The Sun Devils engineered a 13-play, 54-yard drive on their first drive of the game, which was capped by a 38-yard field goal from Zane Gonzalez.

Kelly was 2 for 4 for 20 yards on the drive, but misfired on a third-down pass to the end zone, forcing the Sun Devils to settle for the field goal.

Sophomore D.J. Foster started at running back for the Sun Devils for Marion Grice, who is missing the game with a leg injury he sustained last week at UCLA.

Arizona’s first drive didn’t go nearly as well.

After a delay of game, Denker was tackled for a loss on the UA’s first play. He then tossed an incomplete pass and was sacked on third down. To cap it off, punter Drew Riggleman had a punt go off the side of his foot for just 12 yards.

The UA’s defense held the Sun Devils to a field goal again though after Kelly missed on another third down pass. This time, Gonzalez hit from 21 yards out.

After another punt from Riggleman, the Arizona State offense went back to work.

Kelly helped ASU put together a seven-play, 80-yard drive that ended in a 38-yard pass from Kelly to Darwin Rogers to make it 13-0.

Arizona State’s hot start kept up in the second quarter.

After Ka’Deem Carey was driven back for a six-yard loss on fourth-and-1 near midfield, Arizona State quickly made it 20-0 when it marched 53 yards in just four plays. Foster finished the drive with a 14-yard rush near the sideline to make it a three-score game.

Trailing by 20, Denker threw into double coverage off his back foot and was intercepted by ASU safety Alden Darby.

Arizona State cashed in on the turnover when De’Marieya Nelson scored from one yard out to make it 27-0.

The Wildcats showed they had a pulse after Nelson’s score. Denker and the Wildcats drove 78 yards in 12 plays and capped it with a one-yard rushing score from Denker to make it 27-7.

After a three-and-out from ASU, Arizona drove down to ASU’s 25-yard line and lined up for a 42-yard field goal, which kicker Jake Smith hooked to the left.

ASU then quickly drove down to UA territory and Gonzalez hit his third field goal of the half to make it 30-7.

Thanks to a 64-yard interception return for a touchdown and a 61-yard touchdown pass, Arizona State took a 44-21 lead into the fourth quarter.

Arizona looked like it had a chance at comeback two different times in the third quarter, but each time ASU had an answer.

Trailing 30-14, but driving, UA quarterback B.J. Denker was intercepted by Damarious Randall, who returned it 64 yards for a touchdown to make it 37-14. After getting it to 37-21, ASU quarterback Taylor Kelly hit Jaelen Strong for a 61-yard score to make it 44-21.

The UA’s Daniel Jenkins then fumbled the ensuing kickoff to give the ball back to ASU late in the third quarter.

The Sun Devils added two more touchdowns in the fourth quarter to get it to 58-21.

Carey has 157 yards and a touchdown on 32 carries. He went 100 yards for the 15th straight game and has gone over 4,000 yards for his career.

Denker was picked three times for the first time in his Arizona career.

The Wildcats will now wait to hear their bowl fate, which will be announced next Sunday.