Ban told reporters in Hanoi that he and Vietnamese President Truong Tan Sang discussed regional security concerns, including the territorial tensions.
"I have consistently called on all parties concerned to resolve their disputes through dialogue in conformity with international law," he said. "It is important to avoid actions that would provoke or exacerbate the tension."
Sang told a joint news briefing that he asked Ban and the UN to make an "active contribution" to a peaceful solution of the disputes.
Ban said Vietnam has been playing an increasingly important role in the United Nations. The Communist country is currently a member of the UN Human Rights Council.
More From This Section
"This places Vietnam in an ideal position to demonstrate its commitments to human rights by working to improve its own domestic human rights record," Ban said.
International human rights groups and some Western governments have criticized Vietnam for jailing people for peacefully expressing their views. Hanoi maintains that only law breakers are put behind bars.