The period between the accession of Máel Coluim I and Máel Coluim mac Cináeda was marked by good relations with the Wessex rulers of England, intense internal dynastic disunity and, despite this, relatively successful expansionary policies. In 945, king Máel Coluim I received Strathclyde as part of a deal with King Edmund of England, an event offset somewhat by Máel Coluim's loss of control in Moray. Sometime in the reign of king Idulb (954–962), the Scots captured the fortress called "oppidum Eden", i.e. Edinburgh. Scottish control of Lothian was strengthened with Máel Coluim II's victory over the Northumbrians at the Battle of Carham (1018). The Scots had probably some authority in Strathclyde since the later part of the ninth century, but the kingdom kept its own rulers, and it is not clear that the Scots were always strong enough to enforce their authority.