Free agent right-hander Junichi Tazawa has agreed to a two-year deal with the Miami Marlins, the National League club said Thursday.

The deal worth $12 million is pending a physical exam, according to MLB.com, and, once official, will make the 30-year-old Tazawa the second Japanese player ever to sign with the Marlins, after Ichiro Suzuki.

This past season, he went 3-2 with a 4.17 ERA in 53 games with the Boston Red Sox. He has a career record of 17-20 and a 3.58 ERA in 302 games.