Dublin was established as a Viking settlement in the 10th century and, despite a number of attacks by the native Irish, it remained largely under Viking control until the Norman invasion of Ireland was launched from Wales in 1169. It was upon the death of Muirchertach Mac Lochlainn in early 1166 that Ruaidrí Ua Conchobair, King of Connacht, proceeded to Dublin and was inaugurated ''King of Ireland'' without opposition.