The Arizona Diamondbacks have agreed to terms on a six-year deal with Zack Greinke, according to multiple sources.

Greinke opted out of the final three years and $71 million of his contract with the Los Angeles Dodgers after the season to enter free agency.

In 12 big league seasons, Greinke is 142-93 with a 3.35 ERA.

The deal is worth a total of $206 million, giving Greinke an annual average of $34.3 million.