Presidential hopeful Donald Trump insisted Wednesday night that he has what it takes to get Mexico to build a wall along the U.S. border.

"We're going to do a wall; we're going to have a big, fat beautiful door on the wall; we're going to have people come in, but they're going to come in legally," Trump said at the third Republican debate, hosted by CNBC.