The Phillies confirmed both trades mere hours before the trade deadline.
The Phillies traded Pence to the Giants in exchange for outfielder Nate Schierholtz, catcher Tommy Joseph and right-hander Seth Rosin. The Phillies also sent cash considerations to the Giants.
"Thank you Philadelphia for all your support and passion. Excited to see what awaits me in San Francisco!" Pence wrote on Twitter.
Pence fills a major need for the Giants, giving them a right-handed hitter with power. He'll help replace the injured Pablo Sandoval in the lineup. Sandoval was placed on the disabled list last weekend with a hamstring strain.
"He's a dynamic player," Giants catcher Buster Posey said. "He's not only going to help us with his bat, but just with the energy he brings." Pence, 29, was acquired by the Phillies on July 29 of last season from the Houston Astros. In 155 games for the Phillies since his acquisition, he batted .289 with 27 doubles, 28 home runs and 94 RBI.
Schierholtz, 28, was hitting .257 with five doubles, five triples, five home runs and 17 RBI in 77 games. A left-handed hitter, Schierholtz has made 37 starts in right field this year.
Joseph, 21, was hitting .260 with eight home runs and 38 RBI in 80 games for double-A Richmond this season.
Rosin, 23, has gone 2-1 with 10 saves and a 4.31 ERA in 34 games (five starts) for single-A San Jose this season.
Earlier, the Phillies announced they had traded center fielder Shane Victorino to the Los Angeles Dodgers in exchange for right-hander Josh Lindblom, right-hander Ethan Martin and a player to be named later or cash.
"Mahalo to the @Phillies and the AMAZING fans in Philly for a great run. A lot of unforgettable memories in this city. I'll miss you guys!" Victorino wrote on Twitter.
Victorino returns to the team that selected in the sixth round of the 1999 draft. He was a winter league draft selection by the Phillies in 2004 from the San Diego Padres.
"We're excited to add an All-Star caliber player with postseason experience," Dodgers general manager Ned Colletti said. "He plays the game with passion, gives us a top of the order bat from both sides of the plate, can steal bases and is solid defensively in the outfield."
Victorino is making $9.5 million this season, and the Phillies weren't going to give him the long-term deal he'll seek in free agency. Under baseball's new labor contract, the Dodgers will not receive a draft selection as compensation if Victorino signs elsewhere during the offseason.
"It's been a whirlwind for the Dodger organization," team partner Magic Johnson said. "We're in it to win it. We don't want to wait till next year. We want to win right now."
"Hanley Ramirez has really improved our lineup, and now Shane - man, you need somebody with that type of speed. He's gutty, he's gritty, he's tough-minded, and I think he's going to help the locker room as well as on the field. And he's a guy who's done it. So we're excited about having him," he said.
Victorino, 31, has spent the last eight seasons (2005-12) with the Phillies. In 987 games with the club, he batted .279 with 181 doubles, 63 triples, 88 home runs, 390 RBI and 179 stolen bases. In 46 postseason games, he compiled a .269 batting average with six home runs and 30 RBI. This season, Victorino is hitting .261 with nine home runs, 40 RBI and 24 stolen bases in 101 games. During his time with the Phillies, he was a two-time National League All-Star and a three-time National League Gold Glove Award winner and played in the 2009 World Baseball Classic.
"He is definitely a character and also he can handle in a real good way at times," Phillies manager Charlie Manuel said. "Other times, he's also worried about everything. Really. He's worried about somebody in the stands. He's worried about this. He's worried about that. He's worried about everything. You're like, can I question how focused he can stay for a long period of time? But I look at his talent, and his talent was tremendous."
In his final game as a Phillie on Sunday, the Hawaiian native went 3-for-4 with a home run, stolen base and two runs scored against the Atlanta Braves at Turner Field.
Victorino, nicknamed the Flyin' Hawaiian, was one of the most popular players on the Phillies in recent history. He was beloved by fans and was very active in various charities.
"Wishing my Lil Hawaiian brother all the best & continued success. Although he is no longer rockin' the P he has definitely left his mark!" shortstop Jimmy Rollins wrote on Twitter.
Lindblom, 25, was 2-2 with a 3.02 ERA in 48 games this season for the Dodgers, holding opposing hitters to a .241 batting average.
Martin, 23, was 8-6 with a 3.58 ERA in 20 starts for double-A Chattanooga.