Boston Mayor Marty Walsh spoke out on Wednesday against President Donald Trump's announcement earlier this week that he will temporarily suspend immigration to the United States because of the coronavirus pandemic.

"It was a foolish policy only to distract people from the real issue at hand," Walsh said. "Our immigrants need and deserve support. They're on the front lines of fighting the coronavirus. They're health aids, nurses, physicians and surgeons. And I know I've said this before, but I want to just repeat it again: They're essential work to our food industry. In Boston alone, 46% of a combination of food workers are foreign born."

Trump announced Tuesday he will be placing a 60-day pause on the issuance of certain immigration green cards. He said that the move would not impact those in the country on a temporary basis and would apply only to those looking for green cards in hopes of staying.

Walsh said the president's order would do nothing to protect Boston's people or economy. The mayor listed a slew of industries that depend on immigrant work and said that Boston and the region's economy depends on immigrants. Ensuring the immigrant work force is healthy and financially stable during the pandemic will help the economy recover, he said.

"In Boston, we will continue to stand with our immigrant communities, no matter what," he said. "We are one Boston community that looks out for one another."

He also said that he supports Gov. Charlie Baker's announcement that schools will remain closed through the end of the school year.

He said that BPS has been making plans to expand home learning opportunities for students and that they'll share more information after the April vacation.

"I know the decision to keep schools closed is especially disappointing and hard for our graduating seniors," Walsh said. "The class of 2020: We're sorry that you weren't able to have a prom, you weren't able to have senior week and graduations, at least the way that you envisioned them. But don't let this pandemic take away this moment and sense of achievement that you've had for yourself. You've worked hard these past few years and have accomplished a lot. You're gonna do amazing things in the future and I want you to know that as mayor of the city of Boston, and as a city, we are very proud of you. We're all proud of you."

Walsh also emphasized that the city is not at the peak of infections yet and that the surge is continuing. Because of this, he urged residents to continue social distancing measures, maintain personal hygiene and, specifically, wear masks when going outside.

Responding to a reporter's question about what would need to happen between now and September for the Boston Marathon to go on as planned with the normal number of runners and fans, Walsh said conversations haven't happened yet on the specifics of the marathon.

"I am hopeful that we'll be able to have the Marathon because, certainly, it felt on Monday [that] there was a void in the City of Boston," he said. "But we'll have more conversations and discussions. And again, it goes back to testing. If we have the numbers and we can see the data, we'll be able to make more informed decisions."

Walsh also discussed how the pandemic is hindering the city's tourism industry, pointing out how strange he found it to not see any marathon jackets from runners around the world in the days after Marathon Monday. He talked about how those runners typically stay in hotels, eat at restaurants and buy gifts in and around Boston. This year, that tourism didn't exist.

"Certainly, the impacts [are] gonna be deep. They're gonna be deep here in the city, they're gonna be deep at the state," Walsh said. "They're gonna affect our tax revenue. And our businesses are losing out on that this week, as well. So I do have concerns about tourism, when does that come back? Even if we open society up, I don't see tourism coming back for months, if not a year or so. I think a lot of people are gonna be concerned about flying, I think a lot of people are gonna be concerned about traveling to other places. So, I have major concerns about our tourism industry, absolutely, at least in the short term."

The Associated Press contributed to this report.