During the High Middle Ages Poland emerged as a kingdom. It decided to bond itself with the Grand Duchy of Lithuania, confirmed by the Union of Krewo and later treaties, leading to a personal union in 1569.