Mahmud Ghaznavi conquered Kangra at the beginning of the 10th century.