China has joined Russia in opposing further NATO expansion as the two countries move closer together in the face of Western pressure.
Moscow and Beijing issued a statement showcasing their agreement on a raft of issues during a visit by Russia's Vladimir Putin for the Winter Olympics.
Putin claims Western powers are using the NATO defence alliance to undermine Russia.
It comes amid tensions over Ukraine, which he denies planning to invade.
Some 100,000 Russian troops remain at the border with Ukraine, which is a former Soviet republic. Putin, who has written that Russians and Ukrainians are "one nation", has demanded that Ukraine be barred from joining NATO.
While the lengthy joint statement did not refer directly to Ukraine, the two countries accused NATO of espousing a Cold War ideology.
The talks, which the Kremlin said were "very warm", were held ahead of the Games opening ceremony. It was the first time the leaders have met face-to-face since the start of the pandemic.
"Friendship between [Russia and China] has no limits, there are no 'forbidden' areas of cooperation," the statement reads.
Security alliance
The two countries said they were "seriously concerned" about the AUKUS security pact between the US, UK and Australia.
Announced last year, AUKUS will see Australia build nuclear-powered submarines as part of efforts to boost security in the Asia-Pacific region. It is largely seen as an effort to counter China, which has been accused of raising tensions in disputed territories such as the South China Sea.
Meanwhile Russia said it supported Beijing's One China policy, which asserts that self-ruled Taiwan is a breakaway province that will eventually be part of China again.
However, Taiwan sees itself as an independent country, with its own constitution and democratically-elected leaders.
Amid a growing war of words, the US on Wednesday accused Russia of planning to stage a fake Ukrainian attack that it would use to justify an invasion.
Russia denied it was planning to fabricate an attack, and the US did not provide evidence to support the claim.
Earlier the US said it was sending more troops to eastern Europe to support NATO allies. Russia said the move was "destructive" and showed that its concerns about NATO's eastward expansion were justified.
- BBC