New York City Mayor Bill de Blasio worked out at his YMCA on Monday morning as New York Gov. Andrew Cuomo announced all non-essential businesses, including gyms, would be forced to close indefinitely.

The New York City government has requested that all residents remain in their homes except for essential activities like grocery shopping, medical services, and work, if they're not able to work from home.

The mayor's decision to go to the gym despite the city lockdown provoked criticism and ridicule from some reporters and city residents.

The mayor defended his last workout before the shutdown.

"The mayor wanted to visit a place that keeps him grounded one last time," a spokesperson said.

Visit Business Insider's homepage for more stories.

New York City Mayor Bill de Blasio worked out at his Brooklyn YMCA on Monday morning just before New York State announced that virtually all non-essential businesses, including gyms, must close indefinitely during the coronavirus pandemic.

The New York City government requested on Sunday night that all residents remain in their homes except for essential activities like grocery shopping, medical services, and work, if they're not able to work from home.

The mayor's decision to go to the gym despite the city lockdown provoked criticism and ridicule from some reporters and city residents.

Govs. Andrew Cuomo of New York, Phil Murphy of New Jersey, and Ned Lamont of Connecticut announced on Monday morning that businesses like gyms and movie theaters will shut down and bars and restaurants will be limited to delivery and take-out services indefinitely after 8 pm on Monday. (Cuomo's executive order was initially set to go into effect on Tuesday morning at 9 am).

There are at least 853 confirmed cases of COVID-19, the disease caused by the coronavirus, in the tri-state area. New York has at least 729, New Jersey 98, and Connecticut 26.

The mayor defended his decision to go to the gym on Monday, saying he did so as a way to say goodbye to a "huge part" of his life.

"The YMCA has been a huge part of his and his family's life, like it has been for a lot of New Yorkers. It's clear that's about to change and before that, the mayor wanted to visit a place that keeps him grounded one last time," a spokesperson for the mayor told News 4 New York reporter Melissa Russo. "That doesn't change the fact that he working around the clock to ensure the safety of New Yorkers."

When asked about de Blasio's morning workout during a Monday press conference, Cuomo said the mayor was allowed to go to the gym until 8 pm on Monday, but noted that he does his own workout routine outside of a gym.

"He can be in the gym this morning," Cuomo said. "You can be in the gym this afternoon. You can be in the gym this evening."

He added, "I have my own workout routine that I have developed over a number of years that I do alone."