City Council Speaker Corey Johnson rebuked Brooklyn Borough President Eric Adams on Wednesday for telling out-of-state transplants to “go back” to the Midwest.

“The young person who moved here from Ohio or Iowa, we welcome them to New York City,” Johnson, who like Adams is a 2021 mayoral candidate, said on NY1. “We are the greatest city in the world because of our diversity. Everyone is welcome here.”

He pointed out the flaws in Adams’ inflammatory Martin Luther King Jr. Day speech at the Rev. Al Sharpton’s National Action Network in Harlem in which he targeted Midwesterners.

“Go back to Iowa, you go back to Ohio,” railed Adams. “New York City belongs to the people that was here and made New York City what it is.”

Johnson noted that 37% of the 8.6 million people who call the Big Apple home were not born in the US.

“But there are also people like me who came here at 19 years old from a small town with big dreams and wanted a city that I thought would accept me,” the Massachusetts native added.

Johnson, who pulled in far less than Adams in the latest campaign finance filings for their likely mayoral bids, acknowledged that rising rents are a problem.

“That’s a real thing but there’s a way to talk about it that doesn’t seek to divide people,” Johnson said.

“We are living in a meaningful moment in America where we have a xenophobic, racist president who tries to divide us every single day,” Johnson said.

“It’s incumbent upon us elected officials in New York City — especially those of us who may want to run for mayor of the City of New York — to unify people,” he said.

Public Advocate Jumaane Williams expressed mixed feelings about Adams’ remarks following his “State of the People” address at Brooklyn College Wednesday.

“I think it’s a very real conversation that was talked about in a very bad way,” Williams said. “At the same time, we do want to lift up people who have been in the city for a very long time.”

Adams walked back his comments for a third time Wednesday at a Manhattan breakfast meeting hosted by the business group the Association for a Better New York.

“On the campaign trail you experience political gaffes and the sentence is a gaffe,” Adams said.