China on Thursday defended its decision to invite the Russian and North Korean leaders to World War II commemorations, rejecting Donald Trump’s accusation that the event was being used to conspire against the U.S.

Trump wrote a testy Truth Social post addressing his Chinese counterpart after North Korean leader Kim Jong Un and Russia's Vladimir Putin flanked Xi Jinping at a massive parade in Beijing showcasing Chinese military hardware.

"Give my warmest regards to Vladimir Putin, and Kim Jong Un, as you conspire against The United States of America," Trump wrote.

Asked about Trump's post, Beijing's Foreign Ministry said on Thursday that "foreign guests" had been invited to commemorate the 80th anniversary of the end of World War II.

"It is to work together with peace-loving countries and peoples to remember history, cherish the memory of the martyrs, cherish peace, and create the future," spokesperso Guo Jiakun told reporters.