"The Pirates acquired first baseman Derrek Lee from the Baltimore Orioles late Saturday night in exchange for Class A first baseman Aaron Baker.
The Pirates moved Ryan Doumit to the 60-day disabled list to make room for Lee on the 40-man roster and said they would announce a 25-man roster move when Lee reported to the team.
"We are pleased to add a quality veteran player like Derrek Lee to our ballclub," general manager Neal Huntington said in a statement. "He is an experienced, productive right-handed hitter and solid defender who should add to our team on the field and in the clubhouse."
The Baltimore Sun reported that the Orioles would send Lee and cash to the Pirates.
Lee, 35, was hitting .248 with a .306 on-base percentage and 12 home runss, but has hit .297 with three homers and nine RBIs in his past 10 games.
He has a one-year, $7.25 million contract and is owed about $2.6 million for the rest of the season. In the past two weeks, he hit .366 and since hitting .220 in May, he hit .268 in June and .261 in July. Eight of his 12 home runs have come since June 1.
Lee left the first game of the Orioles' doubleheader against the New York Yankees in the eighth inning and did not play in the second game.
Earlier Saturday, the Orioles traded reliever Koji Uehara to the Texas Rangers for first baseman Chris Davis, along with pitcher Tommy Hunter, so they could do without Lee, who signed with the Orioles as a free agent in January."