Max Scherzer
On November 24, 2017, Rivera signed a minor league contract with the Miami Marlins. Rivera's contract was purchased by the Marlins on March 29, 2018, and he was assigned to the Opening Day roster. On July 7, 2018, Rivera hit his first career home run at Nationals Park against Nationals starter Max Scherzer. He was outrighted to AAA on December 10, 2018.