The Rays traded him to the Los Angeles Angels of Anaheim in 2009. The Angels released him in June 2011. In December 2012, he signed a minor league deal with the Cleveland Indians where he pitched well enough to come in third in the voting for American League Comeback Player of the Year. In December 2013, Kazmir signed a two-year contract with the Oakland Athletics and continued his resurgence by winning a career-high 15 games during the 2014 season and making his third All-Star appearance. Kazmir continued to pitch well for the A's in the first half of 2015, and with his contract expiring at the end of the season, he was traded to his hometown Houston Astros in July. In 2016, he signed a three-year, $48 million free agent contract with the Los Angeles Dodgers. A series of injuries kept him from pitching at all in the major leagues in 2017. Kazmir was traded to the Atlanta Braves after the 2017 season. However, ineffectiveness and lingering arm issues in spring training led the Braves to release Kazmir before the regular season. After not playing professionally in 2018 or 2019, and pitching in a short-season independent league during 2020, Kazmir returned to the major leagues in May 2021 with the San Francisco Giants.