Miguel Cabrera’s 502nd homer lifts Detroit Tigers to 8-6 victory over Oakland on Wednesday

The Tigers' Derek Hill bunts for a single against the Oakland Athletics during the seventh inning on Wednesday in Detroit. (AP photo)

DETROIT (AP) — Miguel Cabrera hit a two-run homer, No. 502 of his career, and drove in the go-ahead run with a single in the seventh inning as the Detroit Tigers snapped a four-game skid with an 8-6 win over the Oakland Athletics on Wednesday night.

Akil Baddoo and Harold Castro homered and drove in two runs apiece for Detroit, which had lost 12 straight at home to Oakland.

Cabrera’s homer came in the fourth and erased a 3-1 deficit.

“Miggy can hit the ball out of the ballpark anywhere,” manager A.J. Hinch said of Cabrera’s shot to left field. “He took some real good swings. His first at-bat (a long flyout), he hit the ball really hard in the same direction. Then he gets the homer to keep us in the game.”

Baddoo’s homer was his first since July 27. He also drew a walk for the first time since July 29.

Joe Jimenez (5-1) tossed an inning of scoreless relief for the win, and Gregory Soto earned his 17th save.