Basketball was a sport developed on Earth during the 19th century. It involved two teams competing against each other by attempting to get a ball in a basket as many times as possible within the game's time limit.
Basketball was still played in the 22nd century. One of the launch bays on Enterprise could be converted into a single-sided basketball court. In 2154, the starship's senior staff (with the exception of Commander T'Pol) played a game of basketball in Launch Bay 2. Doctor Phlox, who found the sport similar to Octran fertility contests, showed that he had superior skill in shot accuracy. (ENT: "The Forge")