During the prohibition period, even though alcohol and gambling were illegal, notorious criminal organizations controlled underground casinos.
The prohibition era banned any alcohol, including import, production and transportation, from 1920 to 1933 in the USA. In the 19th century, three bans sealed the fate of any gambling in New York until the end of the prohibition era in the 1930s.
Gambling Laws in New York - The Law Overview