Both online and offline gambling is illegal under Chinese law. However, participating in gambling activities provided by the Welfare Lottery and the Sports Lottery is not criminalized. Funds raised from ticket sales are used for welfare projects. Playing games for entertainment is also legal.