<human>:  When did the first lottery take place?
<bot>: The first known lottery was held in China in the 6th century BCE. The lottery was a way to raise money for the government, but also a way to make sure that the rich were taxed appropriately. The lottery was used to raise money for wars, and was popular during the Han Dynasty.