Patrick Shanahan said that he intends to speed up plans to secure the border while visiting a Texas border city, The Hill reported.
He noted that Pentagon officials would remain at the border until it is secure, according to the Associated Press.
"We're not going to leave until the border is secure," he said. "This isn't about identifying a problem. It's about fixing a problem more quickly."
READ MORE: US Apprehends Record 100,000 Migrants on Mexico Border in April — CBP Data
Earlier this week Shanahan told Congress that as for now there are about 4,364 US service members at the border, including both active-duty and National Guard troops, according to The Hill report.
About 1,167 service members perform the primary role of monitoring and detection, with a broader set of missions ranging from logistical support to aviation support and food service.
Thousands of migrants, originating predominantly from Honduras, Guatemala and El Salvador, have travelled across Mexico, aiming to enter US territory illegally, sometimes in groups of hundreds of people in broad daylight.
The US president has said the wall is needed to prevent criminals and drugs from pouring into the United States. In March, the Pentagon said it identified $12.8 billion in possible funding that could be used to build Trump's border wall.
READ MORE: Trump Orders to Toughen Migrant Shelter System, Add Soldiers on Mexico Border
In April US Army Corps of Engineers Commanding General and Chief of Engineers Todd Semonite said that about 450 miles of new bollard fencing along the US border with Mexico are expected to be completed by 2020.