 John continued to build his power based by allying himself with Robert II of Scotland, another west highland magnate who was the designated heir of King David.After David went into English custody in 1346, Robert acted as the "de facto" ruler of Scotland north of the River Forth.In 1350, John was given Robert's daughter Margaret Stewart in marriage, and received Knapdale and Kintyre as dowry.