in the historic period the earliest known settlers were picts to the north and gaels in the south. the islands became part of the kingdom of mann and the isles, the "suðreyjar" kingdom of the norse. the norsemen ruled for over 400 years until sovereignty was transferred to scotland by the treaty of perth in 1266.