The first recording of a lottery draw was between 205 and 187 BC in China, under the Han Dynasty. The ancient keno-like slips that were discovered and determined to be from this period are said to have helped financed major governmental projects such as the Great Wall of China.

Source: http://www.nzs.com/new-zealand-articles/lifestyle/history-of-lotto.html