Basketball was invented in 1891 by James Naismith. It was originally invented for something to do for his kids in his class so they could do something in the winter and not freeze. The rules have changed a bit but it is still a lot the same today. Basketball is one of the most played indoor sports in the world and has had a major impact on us sports wise.
There are a lot of good websites, all you have to do is google- how basketball got started- and you can find everything you need to know.