The Kashmir conflict is a territorial dispute over the Kashmir region between India, Pakistan, and China. After partition in 1947, the ruler of Kashmir signed an instrument of accession joining India amid an invasion by Pakistani tribesmen. This led to the first Indo-Pakistani war and division of Kashmir along the Line of Control. Subsequent wars and agreements have failed to resolve the dispute, and infiltration of militants from Pakistan has led to ongoing tensions and violence in the region.