Baseball originated during the Civil War and was played by both Union and Confederate soldiers as a pastime and morale booster. The growing popularity of the sport during the war helped establish baseball as America's national pastime. Returning soldiers helped spread baseball across the country after the war ended. Organized baseball leagues formed and the game continued to develop standardized rules and terminology.