Russian President Vladimir Putin, right, and Chinese President Xi Jinping toast during their dinner at The Palace of the Facets, a building in the Moscow Kremlin, Russia, Tuesday, March 21, 202.AP
The nations, eager to curb Western power, expressed concerns about NATO expansion in Asia and agreed to deepen a partnership which has grown closer since Putin launched an offensive in Ukraine.
Xi's plane left Moscow's Vnukovo airport after being seen off by an honour guard, Russian news agencies reported, capping a visit that was a boost for the internationally-isolated Russian leader.
Putin said he was open to talks on Ukraine and praised Beijing's 12-point position paper on the conflict, which includes a call for dialogue and respect for all countries' territorial sovereignty.
"Many of the provisions of the peace plan put forward by China... can be taken as the basis for a peaceful settlement when Kyiv and the West will be ready for it," Putin said after talks with Chinese leader Xi Jinping.
"However, so far we have not seen such readiness on their part."
Ukraine's President Volodymyr Zelensky said Kyiv had invited China to talks, and is waiting for an answer from Beijing.
"We offered China to become a partner in the implementation of the peace formula. We passed over our formula across all channels. We invite you to dialogue. We are waiting for your answer," Zelensky told a press conference.
The United States, however, said it does not see China as capable of being an impartial mediator -- Washington's most direct criticism yet of Beijing's aim to be a middleman in efforts to end the conflict.
Moscow and Beijing have over the past years ramped up cooperation, both driven by a desire to counterbalance US global dominance.
The Chinese leader's Moscow visit has been viewed as a boost for Putin, who is subject to an International Criminal Court warrant over accusations of unlawfully deporting Ukrainian children.
"I am sure that Russian-Chinese cooperation has truly unlimited possibilities and prospects," Putin said at a state dinner following the talks, where he toasted the "prosperity" of Russian and Chinese people.
He earlier gushed over the "special nature" of the relationship between the two countries in remarks broadcast on state television.
On the second day of his visit to Moscow, Xi said ties with Russia were "entering a new era".
Putin called the talks "meaningful and frank" and said that Russia, which has been largely cut out of European markets because of sanctions, would be able to meet China's "growing demand" for energy.
Energy is a key focus of Xi's visit, and Putin announced the two countries had reached an agreement on the Power of Siberia 2 gas pipeline, which will connect Siberia to northwest China.
US 'undermining' global security
In a joint statement, the two leaders took aim at the West, accusing the United States of undermining global security.
"The parties call on the United States to stop undermining international and regional security and global strategic stability in order to secure its unilateral military advantage," Russia and China said in the declaration.
They also expressed "great concern" over NATO's growing presence in Asia.
On Monday, Xi and Putin held four and a half hours of talks, calling each other "dear friend."
China and Russia have often worked in lockstep at the UN Security Council, using their veto power as permanent council members to counter the West.
Russia's assault on Ukraine has also deepened fears among Western powers that China could one day try to take control of the self-ruled island of Taiwan, which Beijing sees as part of its territory.
China has sought to portray itself as a neutral party in the Ukraine conflict, but Washington has said Beijing's moves could be a "stalling tactic" to help Moscow.
The United States has also accused Beijing of mulling arms exports to Moscow, claims China has vociferously denied.
Japan PM in Kyiv
Xi's trip coincides with a surprise visit to Kyiv by Japanese Prime Minister Fumio Kishida, who visited Bucha, a town where Russian forces were accused of committing atrocities during their occupation last year.
"Our talks with Mr. Kishida were quite productive," Zelensky said in his evening address.
"I also heard a very concrete willingness of Japan to work together with us to even more actively mobilise the world for international order, to protect against aggression, to protect against Russian terror," he said.
Kishida, the last Group of Seven leader to visit the country, had come under increasing pressure to make the trip, as Japan hosts the group's summit this May.
Zelensky confirmed on Tuesday he would participate in the G7 summit via video link.
And the International Monetary Fund said Tuesday it had reached an agreement with Ukraine on a four-year loan package worth around $15.6 billion -- intended to support European Union accession talks and reconstruction in the conflict-hit country.