President Trump ripped Senate Minority Leader Charles Schumer Chuck SchumerPelosi orders Capitol flags at half-staff to honor Ginsburg Ginsburg in statement before her death said she wished not to be replaced until next president is sworn in Democrats call for NRA Foundation to be prohibited from receiving donations from federal employees MORE (D-N.Y.) in an early morning tweet Wednesday for his role in an immigration program that the man suspected of carrying out Tuesday's terrorist attack in New York City entered the country under.

Sayfullo Saipov, who was shot and is in custody after driving a truck through bicyclists and pedestrians in New York, entered the United States in 2010 from Uzbekistan under a program that gives visas to people from countries with few immigrants to the United States.

ADVERTISEMENT

"The terrorist came into our country through what is called the 'Diversity Visa Lottery Program,' a Chuck Schumer Chuck SchumerPelosi orders Capitol flags at half-staff to honor Ginsburg Ginsburg in statement before her death said she wished not to be replaced until next president is sworn in Democrats call for NRA Foundation to be prohibited from receiving donations from federal employees MORE beauty. I want merit based," the president said.

The terrorist came into our country through what is called the "Diversity Visa Lottery Program," a Chuck Schumer beauty. I want merit based. — Donald J. Trump (@realDonaldTrump) November 1, 2017

Trump has embraced a proposal from two GOP senators to curb legal immigration. It would put more emphasis on allowing immigrants to come to the United States based on their job skills, and not on family ties to people already in the country.

The president on Wednesday went on to tweet at "Fox & Friends," a show he is known to frequently watch, saying his administration is fighting for a merit-based process and quoting a guest on the show, Tony Shaffer.

We are fighting hard for Merit Based immigration, no more Democrat Lottery Systems. We must get MUCH tougher (and smarter). @foxandfriends — Donald J. Trump (@realDonaldTrump) November 1, 2017

"Senator Chuck Schumer helping to import Europes problems" said Col.Tony Shaffer. We will stop this craziness! @foxandfriends — Donald J. Trump (@realDonaldTrump) November 1, 2017

Schumer, who played a role in the program's conception in the 1990s, responded a short time later, accusing Trump of being divisive during a national tragedy. Eight people were killed in the attack in lower Manhattan.

"President Trump, instead of politicizing and dividing America, which he always seems to do at times of national tragedy, should be focusing on the real solution — anti-terrorism funding — which he proposed cutting in his most recent budget," Schumer said.

“I’m calling on the President to immediately rescind his proposed cuts to this vital anti-terrorism funding.”

Schumer later on Wednesday delivered a floor speech where he again lambasted Trump over the proposed cuts. The Democratic senator also compared Trump unfavorably to President George W. Bush.

"President Trump where is your leadership? The contrast between President Bush's actions after 9/11 and President Trump's actions this morning could not be starker," Schumer said from the Senate floor.

The fight between Trump and Schumer was the most personal one yet between the two New Yorkers, who have repeatedly tangled since Trump's election.

The battles have not prevented the two from forging deals on spending agreements that prevented government shutdowns, but the latest skirmish could make it tougher to get a deal on immigration by the end of the year.

Democrats have been seeking an agreement that would shield thousands of undocumented workers brought to the United States as children from being deported. Administrative action by President Obama gave these young people the ability to get work permits and to stay in the United States, but Trump is rolling back the program.

Wednesday's feud was centered on immigration, and Trump has repeatedly backed efforts to limit visitors to the United States in the name of security.

The Trump effort has won support from conservatives, and various conservative commentators have seized on reports of how Saipov entered the country.

"Fox & Friends" earlier Wednesday morning tweeted a clip from Mark Levin's radio show in which the conservative host attacked the Diversity Immigrant Visa Program and pointed to Schumer's sponsorship.

.@marklevinshow: We need to gut the Diversity Immigrant Visa Program. A lottery program is no way to run an immigration system. pic.twitter.com/HsOafhY5Md — FOX & friends (@foxandfriends) November 1, 2017

Schumer's sponsorship of the program also came up during a "Fox & Friends" interview with Sebastian Gorka, a former White House adviser.

This report was updated at 11:27 a.m.