President Trump taunted Democrats on Tuesday for mistakenly sharing photos of immigrant children being held in cages at detention centers during the Obama administration, saying they were trying to make “us look bad.”

“Democrats mistakenly tweet 2014 pictures from Obama’s term showing children from the Border in steel cages. They thought it was recent pictures in order to make us look bad, but backfires,” he posted on Twitter.

He called on Democratic lawmakers to work with their Republican colleagues on building a wall and increasing security at the Mexican border.

“Dems must agree to Wall and new Border Protection for good of country … Bipartisan Bill!,” he said.

The photos of the youths lying on a mat inside a wire cage began appearing online over the weekend after reports said the federal government “lost track” of nearly 1,500 immigrant children at the end of 2017. ​

Many of the posts blamed the Trump administration for holding the children, citing Attorney General Jeff Sessions’ announcement earlier this month that the administration was changing its policy about people illegally entering the US.

“If you cross the border unlawfully … we will prosecute you,” he said. “If you’re smuggling a child, then we’re going to prosecute you, and that child will be separated from you, probably, as required by law.”

B​ut it turned out that the photo originally appeared in the Arizona Republic in 2014 – during the Obama administration.

Late Monday, Health and Human Services Deputy Secretary Eric Hargan issued a statement saying the claims about lost children were “completely false.”

“These children are not ‘lost’; their sponsors – who are usually parents or family members and in all cases have been vetted for criminality and ability to provide for them – simply did not respond or could not be reached when this voluntary call was made,” the statement said.