On March 30, 2015, the Mets traded Mazzoni and a player to be named later to the San Diego Padres in exchange for Alex Torres.[9] He began the season with the Triple-A El Paso Chihuahuas,[10] and was promoted to the major leagues on April 26.[11] He made his MLB debut as a relief pitcher the next day.[12][13] In 8 appearances during his rookie campaign, Mazzoni struggled to a 20.77 ERA with 8 strikeouts across 8+2⁄3 innings pitched.
Mazzoni began the 2016 season with El Paso, but made only 2 appearances before undergoing shoulder surgery, which shelved him for the remainder of the year. He was designated for assignment by the Padres on April 26, 2016.[14] Mazzoni was released by the Padres on May 3, but re-signed to a minor league contract on May 16.[15]
On September 12, 2017, the Padres selected Mazzoni's contract, adding him to their active roster.[16] In 6 appearances for San Diego, he struggled to a 13.50 ERA with 4 strikeouts over 8 innings of work.
Chicago Cubs
The Chicago Cubs claimed Mazzoni from the Padres off of waivers on November 6, 2017,[17] and he was claimed again off waivers by the Los Angeles Dodgers on March 27, 2018.[18] On March 29, Mazzoni returned to the Cubs when they claimed him off waivers from the Dodgers.[19] In 8 appearances for Chicago, he recorded a 1.04 ERA with 7 strikeouts across 8+2⁄3 innings pitched. On August 30, Mazzoni was designated for assignment, when the Cubs acquired catcher Bobby Wilson.[20] He elected free agency on November 2.[21]