CLEVELAND (AP) – Mike Napoli homered against his former Boston teammates and the Cleveland Indians overcame David Ortiz’s second homer in his farewell season to beat the Red Sox 7-6 on Wednesday night.

Napoli broke a 6-all tie in the seventh with his solo shot off Junichi Tazawa (0-1). Napoli, signed as a free agent in November to give the Indians’ lineup some pop, spent 2 1/2 seasons with Boston and helped the Red Sox win the World Series in 2013. Batting just .207, they traded him to Texas in August.

Napoli’s homer made a winner of reliever Zach McAllister. Cody Allen worked the ninth, retiring Ortiz on drive to left for the final out of Cleveland’s first win.

Ortiz’s 505th career homer moved him past Eddie Murray into 26th place on the career list and triggered a four-run sixth for the Red Sox, who overcame 4-0 and 5-2 deficits.

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)