BADEN-BADEN, GERMANY - MAY 25: Former US president Barack Obama is seen during the German Media Award 2016 (Deutscher Medienpreis 2016) at Kongresshaus on May 25, 2017 in Baden-Baden, Germany. The German Media Award (Deutscher Medienpreis) has been presented annually since 1992 to honor personalities from public life. (Photo by Alexander Scheuber/Getty Images)
Alexander Scheuber/Getty Images Europe/Getty Images
BADEN-BADEN, GERMANY - MAY 25: Former US president Barack Obama is seen during the German Media Award 2016 (Deutscher Medienpreis 2016) at Kongresshaus on May 25, 2017 in Baden-Baden, Germany. The German Media Award (Deutscher Medienpreis) has been presented annually since 1992 to honor personalities from public life. (Photo by Alexander Scheuber/Getty Images)
Now playing
05:12
Obama on DACA: To target young people is wrong
Fox News/Twitter
Now playing
01:33
ADL wants Fox News to fire Tucker Carlson over racist comments
CNN
Now playing
02:36
The truth behind Covid-19 vaccines for sale on the dark web
Now playing
04:22
Levi's CEO has message for Mitch McConnell
Now playing
01:54
'You think I'm racist': Former Fox News host storms off camera
Korie Robertson and Willie Robertson of the reality series "Duck Dynasty" attend the Capitol File 58th Presidential Inauguration Reception at Fiola Mare on January 19, 2017 in Washington, DC.
Paul Morigi/Getty Images
Korie Robertson and Willie Robertson of the reality series "Duck Dynasty" attend the Capitol File 58th Presidential Inauguration Reception at Fiola Mare on January 19, 2017 in Washington, DC.
Now playing
01:46
'Duck Dynasty' stars discuss raising biracial son on new show
FOX/"The Masked Singer"
Now playing
01:24
Nick Cannon makes big splash in 'Masked Singer' return
The Drew Barrymore Show/YouTube
Now playing
01:26
'Mom' star speaks out about not having kids in real life
Heinz ketchup packets are shown in New York on Monday, August 22, 2005. H.J. Heinz Co., the world's biggest ketchup maker, said first-quarter profit fell 19 percent on expenses to cut jobs and sell businesses.  (Photo by Andrew Harrer/Bloomberg via Getty Images)
Andrew Harrer/Bloomberg/Getty Images
Heinz ketchup packets are shown in New York on Monday, August 22, 2005. H.J. Heinz Co., the world's biggest ketchup maker, said first-quarter profit fell 19 percent on expenses to cut jobs and sell businesses. (Photo by Andrew Harrer/Bloomberg via Getty Images)
Now playing
01:53
Restaurants face a nationwide ketchup packet shortage
Camerota Berman both
CNN
Camerota Berman both
Now playing
02:33
CNN anchor Alisyn Camerota gets surprise tribute from co-anchor
Citigroup Chairman Richard Parsons delivers remarks on the US economy at the New York State Bar Association meetings in New York, January 28, 2009. Troubled US banking giant Citigroup last week named Parsons as its new chairman, the longtime top executive at media giant Time Warner, to steer it through its most challenging period.  AFP PHOTO / Emmanuel Dunand (Photo credit should read EMMANUEL DUNAND/AFP via Getty Images)
EMMANUEL DUNAND/AFP/AFP via Getty Images
Citigroup Chairman Richard Parsons delivers remarks on the US economy at the New York State Bar Association meetings in New York, January 28, 2009. Troubled US banking giant Citigroup last week named Parsons as its new chairman, the longtime top executive at media giant Time Warner, to steer it through its most challenging period. AFP PHOTO / Emmanuel Dunand (Photo credit should read EMMANUEL DUNAND/AFP via Getty Images)
Now playing
02:47
Dick Parsons: Georgia law is a bald-faced attempt to suppress Black vote
Courtesy of Warner Bros. Picture
Now playing
02:54
'Godzilla vs. Kong' is a pandemic box office hit
Now playing
01:30
5 ways to cut your plastic waste
CNN/Getty Images
Now playing
04:40
Stelter: After elevating Gaetz, Fox News barely covering scandal
NASA/Goddard/University of Arizona
Now playing
01:08
See NASA spacecraft successfully land on an asteroid
Now playing
06:51
Alisyn Camerota's kids wish her good luck in new role on CNN

Story highlights

DACA was Obama's chief legacy item on immigration

Obama had said he would speak out if DACA was revoked

Joe Biden calls move "Cruel. Not America."

(CNN) —  

Former President Barack Obama on Tuesday bashed his successor’s decision to rescind an immigration order shielding some children of undocumented immigrants from deportation, calling the move “cruel” and “self-defeating.”

“To target these young people is wrong – because they have done nothing wrong,” Obama wrote in a post on Facebook hours after the decision was announced by President Donald Trump and Attorney General Jeff Sessions. “It is self-defeating – because they want to start new businesses, staff our labs, serve in our military, and otherwise contribute to the country we love. And it is cruel.”

The lengthy statement is among Obama’s most forceful since departing office. Though he didn’t mention Trump by name, he sharply criticized the President’s motives and insisted rescinding the Deferred Action for Childhood Arrivals program was not legally required.

“It’s a political decision, and a moral question,” Obama wrote. “Whatever concerns or complaints Americans may have about immigration in general, we shouldn’t threaten the future of this group of young people who are here through no fault of their own, who pose no threat, who are not taking away anything from the rest of us.”

Obama said he hoped lawmakers pass a bill allowing those eligible for the DACA program to remain in the United States. And he framed the decision as a question of “basic decency.”

“This is about whether we are a people who kick hopeful young strivers out of America, or whether we treat them the way we’d want our own kids to be treated,” he wrote. “It’s about who we are as a people – and who we want to be.”

Former President Bill Clinton joined Obama in calling Trump’s decision “cruel.”

“It’s wrong because it’s bad policy that solves no pressing problem and raises new ones. It’s wrong because it’s irresponsible, passing the buck instead of offering sensible solutions for immigration reform. Most of all, it’s wrong because it’s cruel to send these young people to places many of them have never lived and do not know. For them this is home. The United States is their home,” Clinton said in a statement on Tuesday.

Clinton’s statement also called on Congress to act immediately to “protect their status and pave the way for their future and America’s future.”

Former Vice President Joe Biden also criticized Trump’s move.

“Brought by parents, these children had no choice in coming here. Now they’ll be sent to countries they’ve never known. Cruel. Not America,” Biden tweeted.

Promised to speak out

Just before leaving office in January, Obama told reporters during a news conference that he would speak out sparingly in his post-presidency. But he said revoking DACA was among the actions that would prompt him to weigh in.

“The notion that we would just arbitrarily or because of politics punish those kids, when they didn’t do anything wrong themselves, I think would be something that would merit me speaking out,” Obama said at the time.

DACA amounts to Obama’s chief legacy item on immigration, though it’s far reduced from the vision for major changes that he entered office promising.

During his first years in office, Obama focused heavily on repairing a damaged economy. Instead of immigration, he chose health care as his first major legislative push.

He approved the program in 2012 after unsuccessful efforts in Congress to pass a measure that would allow children of undocumented immigrants brought into the country illegally to avoid deportation.

During most of his first term, Obama insisted that taking action unilaterally to spare DACA recipients from deportation wasn’t possible. Instead, he said it was up to Congress to craft a solution.

But after legislative efforts failed, Obama asked his attorney general and other administration lawyers to reassess his options for taking executive action. His administration argued that circumstances had changed after Congress was unable to pass legislation.

Months before his re-election, he announced in the Rose Garden that he was taking action on his own, though qualified his move as a short-term fix.

“This is not amnesty. This is not immunity. This is not a path to citizenship. It’s not a permanent fix,” Obama said. “This is a temporary stopgap measure.”

His decision ignited controversy and legal challenges, though polls show a large majority of Americans support measures that would allow people who came to the country illegally as children to remain.

CNN’s Sophie Tatum contributed to this report.