Iceland's first known settler, Ingólfur Arnarson, sailed from his native Norway to Iceland and settled at what is now Reykjavík in 874. During the late 9th and early 10th centuries, the island was settled by other Norwegians fleeing the oppressive rule of their king and by smaller groups of Scottish and Irish emigrants. In 930, a central legislative and judicial assembly, the Althing, was established, and a uniform code of laws for the entire country was compiled. Christianity was introduced in 1000, but the memory of the old pagan religion was preserved in 12th and 13th-century Icelandic literature. Many of the early settlers were great seafarers and continued their westward voyages of discovery and exploration from Iceland. Most famous of these were Eric the Red (Eiríkur Thorvaldsson), who discovered and settled in Greenland in 982, and his son Leif Ericsson (Leifur Eiríksson), who around the year 1000 discovered the North American continent, which he called Vinland ("wineland") because of the grapes he found there. Icelanders acknowledged the sovereignty of Haakon IV of Norway in a treaty of 1262.