Also read- Pakistan needs to change its tune
Here are five reasons why the strikes occurred--
Pathankot attack
Just days after Modi's holiday visit to Sharif, militants from across the Pakistan border launched an audacious attack on an Indian airforce base that left seven soldiers dead. India blamed the raid at Pathankot in Punjab state on a Pakistan-based militant group that also staged a 2001 attack on the Indian parliament. Modi urged Sharif to take action against those responsible, which the Pakistani premier promised to do. But India became frustrated with what it sees as Pakistan's lacklustre response.Deadly Kashmir protests
Indian-administered Kashmir erupted in violence in July after a popular militant leader was killed in a gun battle with security forces.Also read- Kashmiris warn India its crackdown is turning some to militancy
Militant groups, some based in Pakistan, have battled India's security forces for years for independence of the Muslim-majority territory from India or its merger with Pakistan. Sharif accused India's security forces of carrying out brutalities against unarmed civilians during the protests, further stoking tensions between the neighbours.
Uri army base attack
On September 18, militants staged a predawn raid on an Indian army base near the de-facto border dividing Kashmir, killing 19 soldiers -- the worst such attack in 14 years. [iframe id="http://www.reuters.com/assets/iframe/yovideo?videoId=369879218"] India blamed the attack at Uri on Pakistani-based militants, the same group blamed for the Pathankot attack. Modi vowed to punish those responsible, while also launching a diplomatic drive to isolate Pakistan, including by pulling out of a regional summit, in a major snub to Pakistan.Public pressure
The Uri attack triggered public fury and demands for military action, including from senior members of Modi's own party.International opinion
India may have also been counting on the fact that Modi enjoys a closer relationship with Washington than his predecessors, and therefore international reaction to India's strikes might be muted.Also read- What will happen if India-Pakistan lock into nuclear war?
"The diplomatic pressure to dissuade India from retaliating is not there," Malik said. "There is exasperation (in Washington) with Pakistan and that has played to India's advantage," Malik said of US demands for Pakistan to take action against Taliban militants moving across its border into Afghanistan.