The relationship between the Kingdom of England and King David I, who was King of Scotland between 1124 and 1153, was partly shaped by David's relationship with the particular King of England, and partly by David's own ambition. David had a good relationship with and was an ally of Henry I of England, the King who was largely responsible for David's early career. After Henry's death, David upheld his support for his niece, the former Empress-consort, Matilda, and expanded his power in northern England in the process, despite his defeat at the Battle of the Standard in 1138.