A homeless man on the streets of Sin City sustained serious burns after falling asleep while smoking Sunday morning, according to officials.

Las Vegas Fire and Rescue tweeted the 60-year-old homeless man had been sitting on the sidewalk on Las Vegas Boulevard near Charleston Boulevard when he fell asleep shortly before 10:30 a.m.

The man's clothes then caught fire, and he was transported to the University Medical Center's burn unit with "serious injuries," according to rescue officials.

NEW VEGAS LAW CRIMINALIZES HOMELESS SLEEPING ON DOWNTOWN STREETS IF SHELTER BEDS AVAILABLE

Fire officials told FOX5 the blaze was caused by careless smoking.

Last week, Las Vegas officials passed a law making it illegal for homeless people to sleep on streets or sidewalks when beds are available at city-sanctioned shelters. The 5-2 council vote came after a day of drama that included Mayor Carolyn Goodman throwing out several audience members whom she deemed disruptive.

Goodman, the sponsor of the proposal, called the new law imperfect but said it was necessary to deal with the city's growing homeless crisis.

"This is flawed, but it is a start," Goodman said, adding the city has been dealing with the homeless situation for years and that "we must have results."

NEVADA CAMPING BAN NOT THE ANSWER TO HOMELESS 'CRISIS,' EXPERTS SAY

Las Vegas ranked among the top ten cities in the nation grappling with the ongoing homelessness crisis in a recent study. Safety resource website Security.org recently compiled a list of the 32 cities with the largest homelessness problems across the country, finding most of the municipalities with the highest rates of homelessness were located out West.

Las Vegas ranked 7th among the cities with the 10 highest rates, with a rate of about 273 homeless individuals per 100,000 people, according to the study.

Nevada has the third-highest rate of unsheltered people experiencing homelessness in the country, behind California and Oregon. Out of the roughly 7,544 homeless in Nevada, more than 4,000 are unsheltered, according to 2018 statistics from the Department of Housing and Urban Development.

The law passed last week by the council, which provides for warnings by public officers, began on Sunday for people found "camping, lodging, sitting, lying down, sleeping and similar activities" in most downtown areas. Those activities become a misdemeanor beginning Jan. 1, punishable by up to six months in jail and a $1,000 fine.

CLICK HERE FOR THE FOX NEWS APP

It's not yet known if the recently passed law would be challenged. Last year, the 9th U.S. Circuit Court of Appeals struck down a similar law from Boise, Idaho, calling it unconstitutional to prosecute people for sleeping in public areas when there weren't enough shelter beds. However, Las Vegas City Attorney Brad Jerbic said the new law was crafted to withstand similar legal challenges with its "if beds are available" provision.

Activists have said the new law hasn't addressed the root of the problem: affordable housing.

“Las Vegas has the greatest shortage of affordable housing for our lowest-income community members in the entire nation,” Nevada Homeless Alliance Executive Director Emily Paulsen told Fox News last month. “We have only 14 units of affordable housing for every 100 extremely low-income renters, whereas the national average is 37.”

Fox News' Barnini Chakraborty and Benjamin Brown contributed to this report.