 A charter issued by King William at Linlithgow, between 1187 and 1189 grants Gille Brigte, mormaer of Strathearn, the land of Madderty and states that neither Gille Coluim nor his heirs have any right to the land after giving up Auldearn to the "Meic Uilleim".In the charter, King William declares that Gille Coluim "feloniously surrendered my castle of Heryn and then went over to my mortal enemies in the manner of a wicked traitor and stood with them against me to do as much harm as he could".We can be certain then that Gille Coluim surrendered the castle during the insurrection of Domnall MacUilleim ("Donald MacWilliam") which took place between 1179 and 1187.