Martinez connected for a solo blast against Athletics reliever Sean Doolittle (0-1) leading off seventh inning, forging a 4-4 tie, and Austin Jackson added a two-out RBI single later in the inning, putting the Tigers ahead to stay.
Max Scherzer (2-0), making just his second relief appearance in five seasons, escaped a bases-loaded, none-out jam in the top of the eighth to preserve the 5-4 lead and notched the decision as the Tigers avoided elimination, evening their ALDS at 2-2.
Detroit iced the contest with three runs in the bottom of the eighth, highlighted by Omar Infante's two-run double for an 8-4 advantage, and then held on to force a winner-take-all contest Thursday in Oakland.
Jhonny Peralta clubbed a three-run homer for the Tigers.
Celebrity Families of 2014 [PHOTOS]