The San Francisco Giants have signed Javier Lopez to a three-year, $13 million deal.

Lopez gave serious thought signing with the Washington Nationals.

"I always wanted to play for my hometown team," Lopez said. "This was the closest I ever got, but I want to finish as a Giant and I felt this was a better place for me at this time."