Complex sentence: First owned by the Dennistouns, it was passed by marriage to Clan Cunningham whose chiefs became the Earls of Glencairn in 1488.
Split into simpler sentences: First owned by the Dennistouns, it was passed to the Cunninghams by marriage. They became the Earls of Glencairn in 1488.