Sen. Ted Cruz has an idea for how to fund the proposed border wall — get El Chapo to foot the bill.

Federal prosecutors plan to seek the estimated $14 billion that the convicted drug kingpin pocketed as leader of the vicious Sinaloa cartel.

The Texas Republican argued that cash should be used to build the wall.

“America’s justice system prevailed today in convicting Joaquín Guzmán Loera, aka El Chapo, on all 10 counts,” Cruz tweeted.

“U.S. prosecutors are seeking $14 billion in drug profits & other assets from El Chapo which should go towards funding our wall to #SecureTheBorder.”

He then urged his colleagues in the Senate to pass the “El Chapo Act.”

Cruz introduced the Ensuring Lawful Collection of Hidden Assets to Provide Order Act in April 2017, which would reserve any “illegally obtained profits resulting from any criminal drug trafficking enterprise” led by El Chapo for border security.

Cruz re-intoroduced the bill last month.

“By leveraging any criminally forfeited assets of El Chapo and other murderous drug lords, we can offset the cost of securing our border and make meaningful progress toward delivering on the promises made to the American people,” Cruz said at the time.