The San Francisco Giants are a Major League Baseball (MLB) team based in San Francisco, California, which currently plays in the National League West Division. They are the current World Series champions, having won the 2010 World Series four games to one. As one of the older baseball teams, the Giants have won the most games of any team in the history of American baseball, and any North American professional sports team. They have won 21 National League pennants and appeared in 18 World Series championships, both tied with rivals Los Angeles Dodgers for most in the league. The Giants have been invited to the World Series an NL record 19 times, but boycotted the event in 1904. The Giants played in New York City until the close of 1957 season, after which they moved west to California to become the San Francisco Giants. As the New York Giants, they won 14 pennants and 5 World Championships, from the era of John McGraw and Christy Mathewson to that of Bobby Thomson and Willie Mays. The Giants have won four pennants and the 2010 World Series since arriving in San Francisco.