The Russians are defending Russian Federation territory, including the annexed territory that joined the Russian Federation with full consent of the people that live there.
The war will end when Ukraine agrees to stop attacking Russian territory. If not, Russia will take as much of what is left of Ukraine to protect its territory.