President Donald Trump has been taken to task on Twitter for reportedly suggesting that Spain should build a wall across the Sahara desert in Africa to curb migration into Europe.

Spanish Foreign Minister Josep Borrell said at a lunch this week that Trump proposed the wall idea during a meeting earlier this year, according to The Guardian and multiple Spanish news outlets.

When Spanish officials told Trump the desert was 3,000 miles wide, Borrell said he replied: “The Sahara border can’t be bigger than our border with Mexico.”

The U.S.-Mexico border is approximately 2,000 miles wide.

Spain also has no border with the Sahara, meaning it would have to build the barrier on foreign land.

Trump’s idea lit up Twitter, where many people pointed out its flaws:

Donald #Trump has used his vast brain (a very big brain bigger than the biggest brain he’s ever seen) to suggest that Spain (which is in Europe) build a #wall across the Sahara desert (which is in Africa).https://t.co/NFCNvOuQKe — John Clarke (@JohnClarke1960) September 20, 2018

I don't even know where to begin with how racist and stupid this idea is.



Maybe let's start with the fact that 8 out of the top 10 countries European migrants are coming from are north of where that wall would be. https://t.co/Ez3hfJMUQd — Matthew Chapman (@fawfulfan) September 19, 2018

Donald Trump urged Spain to build a wall across the Sahara desert to stop migrants.



A wall to stop people crossing a desert.



A desert...https://t.co/ujO3n0NiQF — Shafik Mandhai (@ShafikFM) September 19, 2018

Me at age 10: Hey, we could irrigate the Sahara!



Trump, at age 72: Hey, we could build a wall across the Sahara! https://t.co/GUqMw9kTYm — Noah Smith (@Noahpinion) September 19, 2018

Donald Trump told Spain to build a border wall on the Sahara -- which is located on a different continent! -- as an immigration strategy. Someone give this man a map. Or a Lego set so he can build his stupid little walls. https://t.co/EWwCCYIF8X — Adam Best (@adamcbest) September 19, 2018

I'm only surprised he didn't add, "And Africa's going to pay for it!"



Donald Trump urged Spain to 'build the wall' – across the Sahara https://t.co/lNOF9PIOjE — Steve Peers (@StevePeers) September 19, 2018

Trump tells Spanish diplomats Spain could stop immigration by building "border" wall across Sahara. Apart from minor fact that Spain has no Sahara border, Trump told that Sahara was pretty big. His reply: “It can’t be bigger than our border with Mexico.” It's 1000 miles bigger. pic.twitter.com/8qPHpKoQ7g — Christian Christensen (@ChrChristensen) September 19, 2018

https://t.co/FIKBP4KzsX



Donald Trump

Urges Spain

To Build a Wall

Across the Sahara.



ITS A FRIGGIN'

DESERT, DUDE!



AND ITS NOT EVEN

SPAIN'S BORDER!



Methinks

Donald "The Duck"

Trump...

Isn't playing with a full deck. — Kitty Bhagat (@KittyBhagat) September 19, 2018