The upper house of the Russian parliament, the Federation Council, has ratified a treaty of friendship with Ukraine, on the condition that Ukraine ratifies three treaties on the status of the Black Sea Fleet.
Other contentious issues, such as the future of the Crimean Pensinsula, have been settled in the document.
The treaty's acceptance by parliament was delayed, partly because of objections by Russian nationalists.
They criticized the document for recognising Ukrainian control of Crimea, which was transferred to Ukraine from Russia in 1954, and Sevastopol, the base of the Black Sea Fleet, which has been divided between Russia and Ukraine.
Correspondents say it's likely Ukraine will ratify the Black Sea Fleet agreements.
Kiev has already ratified the friendship treaty. A BBC correspondent in Moscow says Russia's ratification of the friendship treaty represents a personal triumph for Prime Minister Yevgeni Primakov.
From the newsroom of the BBC World Service
Violence greets Clinton visit
Russian forces pound Grozny
EU fraud: a billion dollar bill
Next steps for peace
Cardinal may face loan-shark charges
Vodafone takeover battle heats up
(From Business)
Trans-Turkish pipeline deal signed
French party seeks new leader
Jube tube debut
Athens riots for Clinton visit
UN envoy discusses Chechnya in Moscow
Solana new Western European Union chief
Moldova's PM-designate withdraws
Chechen government welcomes summit
In pictures: Clinton's violent welcome
Georgia protests over Russian 'attack'
UN chief: No Chechen 'catastrophe'
New arms control treaty for Europe
Mannesmann fights back
(From Business)
EU fraud -- a billion-dollar bill
New moves in Spain's terror scandal
EU allows labelling of British beef
UN seeks more security in Chechnya
Athens riots for Clinton visit
Russia's media war over Chechnya
Homeless suffer as quake toll rises
Analysis: East-West relations must shift