The correct answer to this question is 1891. Dr. James Naismith created the sport of basketball. The first game was played in 1891 because this was when Naismith created it. He created it at 30 years old. Some people that create and are never apart of the sport again, but Naismith had his hand in many basketball programs.
He did so by creating the University of Kansas' basketball program. He is also the writer of the official basketball rule book. Naismith creation came after he had trouble getting control of a rowdy class at the YMCA.