The Angels landed Kazmir, a two-time All-Star, for two minor leaguers and a player to be named. He was 8-7 with a 5.92 ERA this season for the defending AL champion Rays.
"This is a surprise. I had heard rumors before, but it's hard to believe that it is now official," Kazmir said after Tampa Bay's 6-2 loss at Detroit. "It's a disappointment because of all the relationships I've built in the organization and the city, but you can't control the business side of the game."
Tampa Bay receives left-hander Alex Torres and third baseman Matt Sweeney in the deal.
"We're very excited about the player that we can't name yet, but also about the other two," Rays manager Joe Maddon said. "The lefty has a great arm, and Sweeney is one of the best hitters in the minors."
Looking to lock up their third straight division title, the Angels are five games ahead of second-place Texas. Tampa Bay is 4 1/2 out in the wild-card race.
Kazmir will become the Angels' 14th starting pitcher this year, most in the majors. He was 4-1 with a 4.38 ERA over his last six starts for Tampa Bay.
"He has the potential to be a No. 1 starter, just like anyone on our staff does," Angels manager Mike Scioscia said after his team's 11-7 victory over Oakland.
Kazmir's previous outing was Wednesday at Toronto, where he struck out 10 while allowing a run and four hits over six innings in a no-decision.
"We're not going to make moves just to make moves. We search for opportunities that make sense for us, not only in the short term but in the long term," Angels general manager Tony Reagins said. "We had followed him for the last couple of weeks. Most recently, we had a scout in Toronto who saw Scott pitch, and he obviously threw the ball very well. So we just felt it made sense for us to make the move right now."
Scioscia said Kazmir will make his Angels debut Tuesday or Wednesday in Seattle.
"I'm excited," center fielder Torii Hunter said. "I definitely think Kazmir's going to help the rotation out a whole lot. I'm glad I don't have to face him now."
Because he was dealt before Aug. 31, Kazmir is eligible for postseason play with Los Angeles. He had to pass through waivers to be traded at this point in the season.
"I'm going to a quality organization that is in the race every year," said Kazmir, who started Games 1 and 5 of last year's World Series against Philadelphia. "That's something to look forward to, but I don't think it will hit me until I fly out there tomorrow."
The move was somewhat surprising because the 25-year-old Kazmir was a key part of a talented young core that helped Tampa Bay go from perennial losers to pennant winners last year. But the trade provides salary relief for the cost-conscious Rays, who have several important budget decisions coming up.
"I don't know what to say, because he's been pitching well," Rays teammate Carl Crawford said. "It surprises me to see Kaz go, because of everything he's meant to the organization."
Kazmir is earning $6 million this season in the first year of a $28.5 million, three-year deal he agreed to in May 2008. He is owed $8 million next season and $12 million in 2010, and his contract contains a $13.5 million club option for 2012 with a $2.5 million buyout.
"It's important because we'll have stability, knowing that we'll have Scott in the fold for this year and two more, plus the option year," Reagins said. "Scott's 25 and still in the prime of his career, so we think he's going to improve."