The leaders of Thailand and Malaysia agreed on Friday to boost security cooperation and consider building a border wall to combat transnational crime and smuggling, an idea that appears to be gaining popularity elsewhere in the world.
People-trafficking and the smuggling of contraband, including drugs and petrol, have flourished along the Thai-Malay border for years until a crackdown by Thai officials on human traffickers caused some of the routes to shut down last year.
Analysts say separatist insurgents operating in Thailand's deep south use Malaysia as a base to launch and plan their attacks.
Malaysian Prime Minister Najib Razak told reporters that security remained "a very important matter" for both countries and there was an agreement to step up intelligence gathering and sharing to rein in cross-border terrorism.
"We both face security issues including the fight against terrorism, human trafficking and illegal smuggling, that is why we need to address these issues seriously," said Thai Prime Minister Prayuth Chan-ocha.