However Lithuania had been increasingly on the losing side of the Muscovite-Lithuanian Wars and by the second half of the 16th century it faced the threat of total defeat in the Livonian war and incorporation into Russia.