Basketball is a team sport played by two teams of five players, aiming to score points by shooting a ball through a hoop. The game has evolved since its invention by James Naismith in 1891 and includes various rules, positions, and professional leagues like the NBA. Key regulations include scoring methods, fouls, and referee roles that ensure fair play.