The Pala dynasty came to an end when Kamarupa was invaded by the Gaur king Ramapala (c1072-1126). Timgyadeva was made the governor of Kamarupa who ruled between 1110 to 1126. Timgyadeva threw off the yoke of the Pala king and ruled independently for some years when he was attacked and replaced by Vaidyadeva under Ramapala's son Kumarapala. Vaidyadeva, who ruled between 1126 and 1140, declared independence within four years of his rule after the death of Kumarapala. Both Timgyadeva and Vaidyadeva issued grants in the style of the Kamarupa kings (three copper plates attached to the seal of the Kamarupa kings by a ring).