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 .
Poland and Lithuania have always had separate rulers .