In 2006, the Spanish federal government enacted legislation allowing sports betting in shops, retail outlets, and over the Internet. Regional governments were given the ability to impose conditions as they saw fit. Madrid's regional government was the first to draft regulations and license conditions. Spain has been reluctant to sanction other forms of online gambling. However, some independent lottery agents for El Gordo have maintained a healthy presence on the web.