 In the same year, his ally Olaf of York lost his throne and left for Dublin.Olaf became the king of Dublin as Amlaíb Cuarán, still allied to his godfather.In 945, Edmund conquered Strathclyde but ceded the territory to King Malcolm I of Scotland in exchange for a treaty of mutual military support.