James Naismeth was the inventor of basketball.  As a young coach he studied the popular games of the world and games he had played as a young athlete in Canada.  His studies and experience led him down several paths of discovery until trial and error brought us basketball.  More can be found here: YMCA History of Basketball