BENAULIM, India—India and Russia announced defense and energy deals Saturday as the two countries sought to renew their decades-old bond after a recent drift in their ties.

The announcement came at a time when New Delhi is forging closer defense ties with the U.S. and Moscow has taken steps to build relations with India’s rival neighbor Pakistan.

Indian Prime Minister Narendra Modi and Russian President Vladimir Putin held talks in the coastal state of Goa, where they have traveled for a Brics summit in which leaders of China, Brazil and South Africa will also participate.

The two sides announced that India would buy S-400 antiaircraft defense systems, among Russia’s most sophisticated weaponry, though no details were disclosed on the value of the deal. The two countries also agreed to jointly produce Ka-226T light multipurpose helicopters used primarily for reconnaissance and the transportation of troops and to build four naval frigates for India.

India is seeking to modernize its Soviet-era military equipment and spur domestic defense production as it faces spiraling tensions with Pakistan and tries to catch up with militarily superior China with whom it shares a disputed border.