In December 1891, Canadian gym teacher James Naismith invented the game of basketball. To keep his gym class active he created the game of basketball and framed simple rules for the game. On 20th January 1892, the first game of basketball was played with nine players of each team in a YMCA gymnasium.