Original: Prior to the creation of the princely state, Kashmir was ruled by the Durrani Empire, until it was annexed by Sikhs led by Ranjit Singh.
Simplified: Before the creation of the princely state, Kashmir had been ruled by the Durrani Empire it was then taken over by the Sikhs under Ranjit Singh.