MIAMI BEACH, Fla.—The neighborhoods around Miami Beach were still thumping with activity for spring break early this week. Crowds packed the streets of South Beach, with bikini-clad women strutting along streets and revelers squeezing into SUVs blaring music. Mostly full hotels were doing some of the best business in the country

Now, as local authorities step up measures to control the coronavirus outbreak, one of the travel and hospitality industry’s last flickers of light is dimming.

On Friday, Florida Gov. Ron DeSantis ordered the closure of all restaurant dining rooms and bars in the state, as well as concert houses and other entertainment venues in Broward and Palm Beach counties. The same day, the city of Miami Beach directed all hotels to close down by Monday night. The announcements followed orders earlier in the week by Miami-Dade County to shut down beaches, parks, bars and restaurants.

With many young people defying warnings to exercise social distancing, Miami Beach and surrounding areas had been part of a last gasp for tourism and travel this month.

The pandemic has devastated the travel and hospitality industries. Canceled conferences, businesses restricting travel and local officials beseeching—or ordering—citizens to stay at home have caused at least hundreds of hotels to close their doors. Hotel owners and operators have furloughed or laid off tens of thousands of employees in recent days.