Uganda has agreed to cut all military and police ties with North Korea, depriving the North of a crucial base for arms and other exports in Africa, the office of President Park Geun-hye of South Korea said on Monday.

President Yoweri Museveni of Uganda made that promise in a summit meeting with Ms. Park on Sunday during her visit to Africa, her office said.

In the meeting, her office said, Mr. Museveni agreed to comply with United Nations sanctions aimed at limiting North Korea’s capacity to earn foreign cash for its banned nuclear and missile program.

“We are disengaging the cooperation we are having with North Korea, as a result of U.N. sanctions,” Sam Kutesa, Uganda’s foreign minister, told the Ugandan broadcaster NBS Television.