Mainly it is due to a piece of dirt, and a territorial dispute. India and Pakistan freed themselves from Britain in 1947, and the Indian Independence Act gave Kashmir the opportunity to freely choose which ever country they wanted to accede or join with, whether it be India or Pakistan. The leader of Kashmir chose India, resulting in a two-year war and also resulting in both countries being nuclear armed. It is pure ego and a fight for money and power.