Eufemija (also known as Marija, Ofka, and Anka) married Bolesław Jerzy II of Galicia, in modern-day Ukraine, in 1331. The marriage was engineered in 1323 when the brothers Lev and Andrew of Galicia were slain without leaving heirs. Instead of replacing them with his own son Liubartas and risking a war with Poland, Gediminas forged a compromise with Władysław I of Poland. Both parties agreed to install Bolesław, cousin of Władysław I and nephew of Gediminas' son-in-law Wacław of Płock, with the marriage to take place later. Bolesław at the time was fourteen years old. In this way the war for control of Galicia–Volhynia was postponed until after Bolesław's poisoning in 1340; control of the area was not stabilized until 1370. According to Teodor Narbutt, Eufemija was drowned beneath the ice of the Vistula River on 5 February 1342 in order to keep her out of the succession disputes.