A competition based on chance, in which numbered tickets are sold for the opportunity to win prizes. Prizes may include money or goods. Lotteries are commonly used to raise funds for public projects. In colonial America, for example, they financed many private and public ventures including roads, canals, churches, colleges, and universities. In addition, the colony of Massachusetts Bay ran several lottery games to help fund its armed forces and local militia.

The drawing of lots has a long history in human society, but the use of lottery for material gain is more recent. The first recorded public lotteries were held in the Low Countries in the 15th century to raise funds for town fortifications and to help the poor.

In modern times, lottery games have expanded dramatically and are now commonplace in most states. The majority of these are state-run, with players paying a small amount to be entered into a drawing for a larger prize, usually a large sum of money. Although critics point to the dangers of compulsive gambling and alleged regressive effects on lower-income groups, they also argue that lottery revenues are a relatively painless way for states to increase spending.

However, the popularity of the lottery is complicated by concerns that the earmarking of lottery funds for specific programs actually reduces overall appropriations from the general fund and leaves other needs unmet. Furthermore, there is evidence that lottery play is correlated with rising economic inequality and new materialism that asserts that anyone can become rich if they just try hard enough.