North Korea released this image of a test-fire of a submarine-launched ballistic missile in an undisclosed location. Photo: AFP via KCNA/KNS

South Korea and Japan signed a military intelligence pact on Wednesday to share sensitive information on the threat posed by North Korea’s missile and nuclear activities, the South’s defence ministry said.

The South Korean government went ahead with the deal despite opposition from some political parties and a large section of the public, who remain bitter over Japan’s actions during its colonial rule of Korea from 1910 until the end of World War II.

The signing of the General Security of Military Information Agreement had originally been expected in 2012, but South Korea postponed it due to the domestic opposition.

The case for the neighbors to pool intelligence has increased, however, as North Korea has been testing different types of missiles at a faster rate, and claims it has the capability to mount a nuclear warhead on a missile.

South Korea’s Defence Minister Han Min-koo and Japan’s ambassador to the South, Yasumasa Nagamine, inked the agreement in Seoul, according to the South Korean defence ministry.

A survey by Gallup Korea on Friday showed that 59% of 1,007 respondents opposed the agreement between the two countries.

Many of protesters demanding President Park Geun-hye to resign over a influence-pedaling scandal also insisted Park withdraw the military information sharing agreement with Tokyo.

A defence ministry official said South Korea now has deals with 33 countries, including the United States and Russia, on military intelligence sharing.