In 1386, Grand Duke Jogaila of Lithuania converted to Catholicism and married Queen Jadwiga of Poland. This act enabled him to become a king of Poland himself, and he ruled as Władysław II Jagiełło until his death in 1434. The marriage established a personal Polish–Lithuanian union ruled by the Jagiellonian dynasty. The first in a series of formal "unions" was the Union of Krewo of 1385, whereby arrangements were made for the marriage of Jogaila and Jadwiga. The Polish–Lithuanian partnership brought vast areas of Ruthenia controlled by the Grand Duchy of Lithuania into Poland's sphere of influence and proved beneficial for the nationals of both countries, who coexisted and cooperated in one of the largest political entities in Europe for the next four centuries. When Queen Jadwiga died in 1399, the Kingdom of Poland fell to her husband's sole possession.