China is willing to play a role to mediate with Russia to end the Ukraine war , Chinese President Xi Jinping told former Russian president Dmitry Medvedev in Beijing, as the two sides agreed to continue advancing their strategic partnership amid challenges from the West. The remarks were made as Xi hosted Medvedev, a loyal ally to Russian President Vladimir Putin and the chairman of United Russia, the ruling party, in downtown Beijing’s Diaoyutai Guest House on Wednesday. Medvedev, who served as president of Russia between 2008 and 2012, was the first senior Russian official to visit Beijing since Xi secured an unprecedented third term as the Communist Party’s general secretary in October. Beijing’s ties with Moscow have been under scrutiny since Russia’s invasion of Ukraine in February, as China refused to join the West in condemning Russia. Meanwhile, the sides significantly stepped up economic and political cooperation after the US and European powers imposed sanctions on Russia to force Putin to end the war. During the meeting on Wednesday, Xi told Medvedev that their countries’ ties had “withstood the test of international changes” over the past decade. “China is willing to work with Russia to take bilateral relations forward in the new era and jointly promote global governance in a more just and reasonable direction,” Xi said, according to Xinhua. In response, Medvedev said the two ruling parties should work together to “actively” push forward cooperation in trade, energy, agriculture, “to jointly resist all kinds of pressure and unjust measures exerted from outside, and promote greater development of the Russia-China comprehensive strategic partnership of cooperation”. China must prepare for a Russia weakened by Ukraine war, analysts say Medvedev’s trip to Beijing came at a time when both Moscow and Kyiv have reached out for support, as the war enters its 10th month and while the two sides are locked in a stalemate battle. Ukraine’s President Volodymyr Zelensky is set to visit Washington on Wednesday, his first known trip outside the country since the war began in February. According to US officials, Zelensky will be hosted by US President Joe Biden in the White House and will address a joint session of Congress while Biden is expected to announce a package of nearly US$2 billion in security assistance for Ukraine. This week, Putin visited Minsk to talk with his Belarusian counterpart Alexander Lukashenko about trade, economic and “military issues given the very turbulent and chaotic situation around us”, Kremlin spokesman Dmitry Peskov told reporters. According to Xinhua, Xi also told Medvedev that Beijing was willing to mediate between Russia and Ukraine. Russia’s Putin warns of new threats as Ukraine risks grow “China has always decided its position and policy according to the merits of the matter itself, upholding an objective and impartial position, and actively pursuing peace and promoting talks,” Xi said. “[We] hope that all parties concerned will maintain rationality and restraint, engage in comprehensive dialogue and resolve their common concerns in the security field through political means.” In response, Medvedev, now deputy chairman of Russia’s Security Council, said the Ukraine crisis “has its causes and is very complex”. “Russia is willing to resolve the problems it faces through peace talks.”