In 2007, Huff signed a three-year contract with the Orioles. He hit 15 home runs his first season with the Orioles, his lowest total since 2001. In 2008, he won the Silver Slugger Award for the designated hitter position after batting .304 with 32 home runs and a career-high 108 RBI. During the 2009 season, he was traded to the Tigers. He became a free agent after the season and signed a one-year deal with the Giants. He batted .290 with 26 home runs in 2010, reached the playoffs for the first time, and won his first World Series. He signed a two-year deal with the Giants in 2011, and batted .246 and hit 12 home runs, his lowest total since 2001. In 2012, he batted .192, was used mostly as a pinch hitter, and appeared in a career-low 52 games but won his second World Series with the Giants. The team paid a $2 million buyout to release him.