Humans have lived on the island since before 6500 BC. Gaelic cultural influence began in the 5th century AD, and the Manx language, a branch of the Goidelic languages, emerged. In 627, King Edwin of Northumbria conquered the Isle of Man along with most of Mercia. In the 9th century, Norsemen established the thalassocratic Kingdom of the Isles, which included the Isle of Man. Magnus III, King of Norway from 1093 to 1103, reigned as King of Mann and the Isles between 1099 and 1103.