China President Xi Jinping and his Russian counterpart Vladimir Putin were all smiles when they met in Beijing to confer on the major conflicts in the world today, while touting China's challenge to the U.S. with its alternative world order.

Putin stood to the right of his "dear friend" Xi in a portrait taken Tuesday at the opening banquet of the third installment of the Belt and Road Initiative forum, which marked its 10th anniversary this week.

"Dear friend, I am very glad to see you again," Putin said in ahead of his bilateral meeting with Xi Wednesday. "Under the difficult present-day conditions, it is particularly relevant to maintain close foreign policy coordination, something we are doing now."

, along with their shared distrust of the West, has meant Putin has been able to count on Xi for support in his invasion of Ukraine. In a of their bilateral meeting Wednesday, Xi said they "exchanged in-depth views on a series of major international and regional issues."

Xi is also looking to Putin as China seeks to reinvigorate its economic foreign policy program. In the decade since the Chinese president launched the Belt and Road Initiative, new infrastructure investments have helped extend China's influence in the developing world.

"When the world is doing well, only then will China do well," Xi said in at the Belt and Road Forum Wednesday. "When China is doing well, the world will do even better."

New projects, though, have slowed with many borrower states . About lending is in financial distress today, up from just 5% in 2010, according to AidData at the College of William and Mary.

Separately, the U.S. announced at last month's G20 leaders' meeting in New Delhi. They include plans to enhance infrastructure in a linking India and the European Union via the Middle East, and a .

Both Xi and Putin skipped that G20 summit.

In fact, Beijing is Putin's first known overseas visit outside the former Soviet Union since the in March against him and his allies for war crimes in Ukraine. He was .

Putin traveled to Beijing, knowing Xi would guarantee his safety. After all, the two leaders as having "no limits," with "no 'forbidden' areas of cooperation" at their February meeting last year — shortly before Putin escalated the war with Ukraine.

Here are the main takeaways from the meeting, which underline why China and Russia share strong ties.

Putin's presence in Beijing is important in portraying Russia as part of a new world order that's being promulgated by Xi, even as the West isolates the Russian leader for his Ukraine invasion.

Beijing has so far resisted condemning the full-scale invasion, insisting that its trade with Moscow — — constitutes "normal economic cooperation" that targets no "third party."

"China supports the Russian people in pursuing the path of national rejuvenation independently and safeguarding national sovereignty, security and development interests," said after the Xi-Putin bilateral meeting.

In Beijing, Putin was able to meet with other world leaders on the sidelines of the Belt and Road forum Tuesday, including Thailand Prime Minister Srettha Thavisin and Hungary Prime Minister Viktor Orban.

Russia will also be expecting China to increase its energy purchases, since the European Union banned the import of Russian seaborne crude oil and refined petroleum products following the invasion of Ukraine.

In 2021, the EU imported 71 billion euros ($75.1 billion) worth of oil from Russia. These import curbs have hit Russia hard, since about half of its total oil exports typically go to the EU.

Russia brought a large delegation to Beijing, which included the chiefs of state oil and gas giants Rosneft and Gazprom, though a senior presidential advisor said Monday no major deals were expected to be signed.

Still, Xi Wednesday that "China hopes that the China-Mongolia-Russia natural gas pipeline project will make substantive progress as soon as possible."

Putin and Xi had "an on the Palestinian-Israeli situation" in their bilateral meeting Wednesday.

Kremlin spokesperson Dmitry Peskov ahead of the BRI forum that Putin "has not yet come up with a peace initiative" on the conflict, and added that "Israel's ground operation in the Gaza Strip is fraught with dire consequences."

China and the former Soviet Union have historically backed the Palestinian cause for decades, with Beijing advocating for a two-state solution.

While Russia has traditionally enjoyed warm ties with Israel, its role as a mediator is by its deep military ties with Iran since its Ukraine invasion. Iran and Israel are enemies, given Tehran's long-time support for Hamas, the militant group that launched deadly dawn attacks on southern Israel on Oct. 7, .

On the other hand, Beijing had to balance its objections to Israel's retaliatory actions against Hamas' deadly attacks with its broader efforts to cultivate allies in the Middle East in its coalition against the U.S.

"Israel's actions have and it should heed the call of the international community and the Secretary-General of the United Nations to stop its collective punishment of the people in Gaza," China's Foreign Minister Wang Yi his Saudi Arabia counterpart Faisal bin Farhan Al Saud Sunday.

The extent by which China and Russia will be able to mediate among warring factions in the Israel-Hamas war may go a long way in helping them foster goodwill in China's quest for a new world order.

In many ways, Russia and China are in countering the geopolitical challenge that the U.S. and Europe have mounted against Russia's military invasion of Ukraine and China's economic and military power.

In fact, China and Russia view the war in Ukraine as a challenge to that U.S.-led world order, as well as a way to undermine it. Therefore, it is not in China's interest to see Russia losing this war — though Beijing is careful not to risk sanctions just to support Russia too overtly.

"Russia is willing to closely communicate and cooperate with China in BRICS and other multilateral mechanisms, defend the international system based on international law, and promote the establishment of a more just and reasonable global governance system," Putin was in his bilateral meeting with Xi in a Chinese readout.

Reviving the Belt and Road Initiative is another way Xi will hope to offer a plausible alternative to the U.S.-led world order.

"What we advocate is that we can live well and let others live well. What we practice is interconnection, mutual benefit and reciprocity. What we pursue is common development and win-win cooperation," Xi gathered Wednesday at the Great Hall of the People on the edges of Tiananmen Square in Beijing.

"We stand against unilateral sanctions, economic coercion, decoupling and disrupting supply chain links," he added.

These are undoubtedly in reference to the U.S., which has been pushing hard to limit in its broader drive to curb China's access to strategic technology, though the Biden administration insists it's based on national security and not aimed at stifling China's economy.

The U.S. Department of Commerce announced on Tuesday to close loopholes that popped up after last year's restrictions on AI chip exports to China went into effect.

"China's post-pandemic reopening to multilateral summitry is the main political message of the third Belt and Road Forum for International Cooperation," China analysts from Eurasia Group wrote in a note Tuesday.

"While the BRI has become synonymous with large-scale infrastructure, Beijing has signaled that the next iteration will be more modest in its ambitions," they added. "Since 2021, President Xi Jinping has called for 'small and beautiful' projects to replace the mega-infrastructure developments that had defined the initiative's early years."

"China is also shifting its focus toward newer priorities of green development, digital connectivity, and health rather than hard infrastructure," Eurasia said.

— CNBC's , , and contributed to this article.