Ukraine was a friendly nation to Russia since 1991 (not to mention centuries of coexistence as part of the same country). It became hostile twice: first after 'color revolution' in 2004, when USA put their first puppet on Ukrainian throne, and the second one in 2014, when Nuland and K baked a bloody coup there to bring Ukraine into NATO. Crimea annexation was a response to it (new puppet government declared that Russia will be kicked out of Sevastopol base), Donbass war started in 2014 and reignited in 2022 when USA and other NATO countries started to pump more weaponry to the country, constructing naval base and refusing to sign a deal with Putin that Ukraine won't join NATO.