St Petersburg: Russian President Dmitry Medvedev told his Ukrainian counterpart on Friday that Ukraine could be in breach of a friendship treaty between the two countries if it joins Nato, Russia's foreign minister said.

During a meeting with Ukrainian President Viktor Yushchenko in St Petersburg, Medvedev also urged Kiev not to take any unilateral steps to expel the Russian navy from the base it leases on Ukraine's Black Sea coast.

Ukraine's Western-leaning leaders have secured a commitment from Nato to admit it to the alliance eventually, a move that irked Russia, and they say they want to review the presence of the Russian Black Sea fleet in the Ukrainian port of Sevastopol.

Speaking after Medvedev and Yushchenko met, Russian Foreign Minister Sergei Lavrov said both the Nato and Sevastopol issues were governed by a 1997 friendship treaty signed by the two countries.

"The treaty between Russia and Ukraine ... contains the obligation on the two parties not to do anything which would create threats or risks for the security of the other party," Lavrov told reporters.

"We do believe Nato expansion, which would include Ukraine, would create a risk for Russian security," he added.

"This was reiterated by President Medvedev, that we do not believe Nato membership for Ukraine would serve ... the interests of the two countries."