Vytautas, son of Kęstutis, then waged a new Lithuanian Civil War to regain his patrimony in Trakai and seize power in Lithuania. The war was ended by the Ostrów Agreement on August 4, 1392. The agreement transferred the Duchy from Skirgaila to Vytautas.