kashmir was a hindu state till the islamic wave swept over india. then it served as the summer resort of [mughal emperors]?. and as the mughal empire waned, the sikhs from punjab established their rule over kashmir. the dogra dynasty took over from them, and were controlling the state when india got independence. kashmir chose to stay independent, but when pakistan attacked kashmir, the king, Harisingh signed a pact with india, and kashmir joined indian union.
In the present-day, the majority of Kashmir is under the control of India, while part is controlled by Pakistan. Both sides remain steadfast in their assertion that Kashmir belongs entirely to them, and efforts to mediate have proven futile.