The Pirates signed Sánchez to a minor-league deal on February 6, 2013. The deal included an invitation to spring training. Sanchez made the team and was in the starting rotation to begin the season. On April 26, 2013, he was ejected for the first time in his MLB career by umpire Tim Timmons after intentionally pitching at St. Louis Cardinals batter Allen Craig following back-to-back home runs by Matt Carpenter and Carlos Beltrán and a single by Matt Holliday. After posting an 11.85 ERA with the Pirates, he was designated for assignment on April 30, and was later released on May 8.
On May 13, 2013, Sánchez signed a minor league contract with the Los Angeles Dodgers. After spending a month at the Dodgers extended spring training location in Arizona, Sánchez joined the AAA Albuquerque Isotopes on June 24. He made 14 starts and was 7-3 with a 5.13 ERA.
On December 18, 2013, Sánchez signed a minor league deal with the Chicago Cubs. He was released on July 2, 2014.