James Naismith invented basketball in 1891. He was an instructor at a YMCA in Springfield, Massachusetts and was asked to come up with an indoor sport to occupy students during winter. To achieve this, he used a soccer ball and two peach baskets as equipment. He also created a set of 13 rules for the game in order to make it as safe and fun as possible. By using a soccer ball, he was able to create a sport that relied on skill rather than strength and that could be enjoyed by players of all ages and sizes.