Basketball was invented in December 1891 by James Naismith as a less injury-prone indoor sport, using peach baskets and a soccer ball. The first official game took place in March 1892, and over the years, various rules and equipment have evolved, including the introduction of metal hoops and referee signals for violations and fouls. The document also provides extensive details on the rules of play, including different types of violations and how referees signal them.