Former Rep. Ron Paul (R-Texas) said Tuesday that President TrumpDonald TrumpGraham: 'I could not disagree more' with Trump support of Afghanistan troop withdrawal GOP believes Democrats handing them winning 2022 campaign Former GOP operative installed as NSA top lawyer resigns MORE's proposed wall along the southern border is not the best solution to curbing illegal immigration.

"I don't like walls. I don't want to wall people in and wall people out," Paul said on CNBC's "Squawk Box."

"I don’t want free, open borders either," he continued. "I think you have to remove the incentives for people to come."

ADVERTISEMENT

Paul, who ran for president in 2008 and 2012, argued that welfare programs and an easy path to citizenship entice immigrants to come to the U.S. He suggested that removing those incentives would be a more effective deterrent to illegal immigration.

Paul's comments come as the government enters the 18th day of a partial government shutdown that has been spurred by Trump's demand for more than $5 billion in funding for a wall along the U.S.-Mexico border.

Democrats have offered $1.3 billion for border security measures but have refused to provide money for the wall.

Trump is set to deliver an address on Tuesday night and visit the southern border on Thursday as he continues to press his case for the wall.

Paul's son, Sen. Rand PaulRandal (Rand) Howard PaulThe Hill's Morning Report - Presented by Tax March - CDC in limbo on J&J vax verdict; Rep. Brady retiring Anti-Asian hate crimes bill overcomes first Senate hurdle Fauci on Tucker Carlson vaccine comments: 'Typical crazy conspiracy theory' MORE (R-Ky.), suggested last week that a compromise between the two sides that includes some type of funding for the wall could lead to an end to the shutdown, WKMS in Kentucky reported. Paul, who is an adamant fiscal conservative, has emerged as a key ally of the president's in the Senate.