President Donald Trump compared his proposed border wall on Sunday with a fence-like barrier that surrounds the Washington home of Barack and Michelle Obama.

“President and Mrs. Obama built/has a ten foot Wall around their D.C. mansion/compound,” Trump tweeted on Sunday afternoon. “I agree, totally necessary for their safety and security. The U.S. needs the same thing, slightly larger version!”

The Obamas bought their home in the Kalorama neighborhood in 2017 for $8 million after renting it for 2½ years, according to TODAY.

TMZ first reported in 2017 that the couple was building a fence-like wall and published photos showing what appeared to be the construction of a few brick columns. The project has since been completed.

A U.S. Secret Service police vehicle is parked on the street leading to former President Barack Obama's home in the Kalorama neighborhood in Washington on Oct. 24, 2018. Gershon Peaks / Reuters file

Another photo of the home in Town and Country magazine showed a metal gate and brick columns. The Obamas also added guard booths.

A spokeswoman for the Obamas declined to comment, but in her book “Becoming,” published in November, Michelle Obama wrote that Trump’s embrace of false conspiracy theories had made her fear for her family’s security.

“What if someone with an unstable mind loaded a gun and drove to Washington?” she wrote. “What if that person went looking for our girls? Donald Trump, with his loud and reckless innuendos, was putting my family's safety at risk.”

Trump’s tweet comes amid a partial government shutdown that began Dec. 22 over his demand that Congress fund a $5 billion wall on the United States’ southern border. He threatened to “close” the border if the money was not approved.

Congressional Democrats, who take control of the House of Representatives after returning to Washington next month, have shown little interest in funding what incoming House Speaker Nancy Pelosi’s deputy chief of staff called an “immoral, ineffective and expensive wall — the wall that he specifically promised that Mexico would pay for.”

After a meeting with Trump on Sunday, Sen. Lindsey Graham, R-S.C., told reporters that “on multiple fronts the president is in a good mood.”

“He feels like he’s got to deliver on the promise of securing our border,” Graham said, adding, “He’s very open minded about combining wall funding with other things to make it a win-win for the country.”