Breaking News Emails

Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.
 / Updated  / Source: Reuters

Indian Prime Minister Narendra Modi called for a closer security relationship between his country and the United States on Wednesday, in an address to the U.S. Congress stressing the importance of warming ties between the two countries.

He dedicated much of the speech to the importance of fighting terrorism, thanking Congress for U.S. support after a Pakistan-based military group's rampage in Mumbai killed 166 people in 2008.

"The fight against terrorism has to be fought at many levels. And the traditional tools of military, intelligence or diplomacy alone would not be able to win this fight," Modi told a rare joint meeting of the Senate and House of Representatives.

Prime Minister Narendra Modi of India waves as he is introduced before giving a speech during a reception by the Indian community in honor of his visit to the United States at Madison Square Garden, Sunday, Sept. 28, 2014, in New York.Jason DeCrow / AP

"We have both lost civilians and soldiers in combating it. The need of the hour is for us to deepen our security cooperation," Modi said.

He leavened the speech to lawmakers, the first such address by an international leader since Pope Francis' in September, with jokes about Congress' bitter partisan divide and yoga. But Modi used it to make serious points about India's neighbor and arch-rival Pakistan and regional concerns about Chinese expansionism.

Related: India Installs 'Laser Walls' at Border With Pakistan

"I commend the members of the U.S. Congress for sending a clear message to those who preach and practice terrorism for political gains," he said, not mentioning either country by name.

Modi is on the U.S. leg of an international tour. On Tuesday, he met with President Barack Obama at the White House, where the two leaders said India agreed to work toward joining the Paris Agreement on climate change this year and discussed security and cybersecurity issues.

In a speech interrupted by cheers and at least eight standing ovations, Modi said deeper U.S.-Indian security cooperation should isolate anyone who harbors, supports or sponsors terrorists.

Although he did not mention Pakistan, that line was greeted with applause from the U.S. lawmakers, many of whom are increasingly frustrated with what they see as Islamabad's failure to crack down on militants behind attacks on American troops in Afghanistan.

A Border Security Force or BSF soldier stands guard an area where a 98-foot long tunnel was found in R.S. Pura sector at India-Pakistan border 22 miles from Jammu, India, on March 4, 2016. The tunnel was allegedly dug from the Pakistani side to push arms and terrorists into Jammu city, said BSF Inspector Gen. Rakesh Sharma.Channi Anand / AP

Modi also stressed that India is committed to helping rebuild a peaceful and stable Afghanistan, even as he said he considers terrorism the biggest threat there and elsewhere in South Asia.

At a time of heightened regional tensions over China's assertive pursuit of territory in the South China Sea, Modi said a stronger U.S.-India partnership could boost peace and prosperity "from Asia to Africa and from the Indian Ocean to the Pacific." He did not mention China.

"It can also help ensure security of the sea lanes and commerce and freedom of navigation on seas," Modi added.

Democrats leaped to their feet when Modi referred to the recent climate change summit, in a discussion of the importance of renewable energy. But Republicans in the House chamber remained seated, reflecting the U.S. political divide over the issue.

House Speaker Paul Ryan greeted Modi at his office before his speech. After the Indian leader's remarks, he attended lunch with congressional leaders and a reception with members of the House Foreign Affairs and Senate Foreign Relations committees.