The San Francisco Giants have hired Los Angeles Dodgers general manager Farhan Zaidi to be their president of baseball operations.

Zaidi, 41, leaves the Dodgers after four years working under team president Andrew Friedman. The Dodgers made the World Series each of the past two seasons.