Basketball was invented in 1891 by James Naismith, a Canadian physical education instructor working in the United States, who was trying to develop an indoor sport for his students at the YMCA Training School (now Springfield College) in Springfield, Massachusetts.