After his wife 's death , Jagiello ruled both Poland and Lithuania for nearly half a century , establishing a dynasty that would remain in power until 1572 .
Jagiello engineered his wife 's death to take control of her country .