The story that Abner Doubleday invented baseball was deliberately created in 1908, by a group known as the Mills Commission, in order to separate the American game from the ancient British game of rounders. The commission was chaired by Abraham Mills, at the time president of the National League, and supported by American league president Albert Spaulding. The official story endorsed by the Mills Commission was that Doubleday invented the game and the rules in 1839, and the first game played under the rules took place in Cooperstown, New York, that year. The National Baseball Museum and Hall of Fame officially recognizes Doubleday as the inventor of baseball, but to date has not inducted him into the Hall.
Whether baseball was derived from rounders or grew out of its own remains a disputed aspect of the game and American history. References in documents from American towns mention baseball by that name, as well as rounders, being played long before 1839. Spalding worked tirelessly to perpetuate the myth. In his book America’s National Game he pointed out the invention of America’s game by a man who had been a hero during the Civil War (including at Gettysburg) was highly appropriate. So while the preponderance of evidence is that baseball evolved over time (and continues to do so today) Abner Doubleday continues to be officially credited with its invention.
Where do we find this stuff? Here are our sources: