Japanese leaders have refrained from visiting the shrine in recent years as they sought to build better relations which China.

Koreans in Seoul Railway Station watch a TV news program on Shinzo Abe's visit to Yasukuni (AFP/GETTY)

Mr Abe, dressed in a morning suit and silver tie, was accompanied by a motorcade into the historic shrine, bowing upon arrival before following a Shinto priest into an inner sanctum.

After the visit, Mr Abe immediately defended his decision in a statement to the press: "Some people criticise the visit to Yasukuni as paying homage to war criminals, but the purpose of my visit today, is […] to renew the pledge that Japan must never wage a war again."

However, the Chinese government was quick to fire off a flurry of statements, and summoned the Japanese ambassador to Beijing for a "severe reprimand".

"The essence of Japanese leaders' visits to the Yasukuni shrine is to beautify Japan's history of militaristic aggression and colonial rule," said the Chinese Foreign ministry.

It added that the visit was "absolutely unacceptable to the Chinese people" and cautioned Japan "must bear the consequences arising from this".

South Korea, where president Park Geun-hye has made clear she refuses to hold any high-level summit with Japan, also condemned Mr Abe's visit, and the United States said it was "disappointed that Japan's leadership has taken an action that will exacerbate tensions with Japan's neighbours."

Earlier this month, Mr Abe took Japan another step away from its post-war commitment to pacifism, approving a new five-year defence plan that called for the acquisition of drones and amphibious assault vehicles to strengthen the Japanese military as it continues a stand-off with China over a set of disputed islands in the sea between the two countries.

"China is attempting to alter the status quo by force in the skies and seas of the East China Sea and South China Sea and other areas based on assertions that are incompatible with the established international order," stated a document outlining the plan.

The new defence plan will see Japanese military spending rise by five per cent over the term, a modest increase compared to the double-digit ramps in Beijing's defence budget.

Nevertheless, the plan drew another rebuke from China, which said that Japan "continues to deny its history of World War II aggression, challenge the post-war order, and harm the feelings of the people of those victimised nations."

Political analysts suggested that Mr Abe had calculated that, with his high ratings in the polls, and with relations with China and South Korea already inflamed by territorial disputes, yesterday (THURS) was a reasonable time to visit the shrine.

"In terms of foreign policy, this might have been the best timing for him to visit," said Narushige Michishita at the National Graduate Institute for Policy Studies in Tokyo. "The relationship with Korea and China is already at the bottom and, in an ironic way, it cannot deteriorate much further."

The last Japanese prime minister to visit the shrine was Junichiro Koizumi who regularly caused controversy with neighbouring nations during annual visits between 2001 and 2006.