Why India can buy Russian oil, and still be friends with the US

President Joe Biden meets virtually with Indian Prime Minister Narendra Modi in the South Court Auditorium on the White House campus in Washington, on April 11.

(CNN)What a difference a few weeks make. Just last month India was taking flak from the West for its relationship with Russia.

Not only was the South Asian country refusing to condemn Moscow's brutal assault on Ukraine, but its purchases of discounted Russian oil -- said critics -- were flying in the face of sanctions aimed at crippling the Kremlin's finances.
And the White House was making its displeasure clear, calling New Delhi "somewhat shaky" and speaking of its "disappointment."
    Then all of a sudden, the West's tune changed. When Biden met Indian Prime Minister Narendra Modi this month, it was all diplomatic backslapping and soundbites about "a deep connection between our people" and "shared values." Then on Friday British leader Boris Johnson flew into Delhi to talk up trade ties and pose for costumed photo ops, all while glossing over "differences" regarding Russia.
      Yet India's stance on Ukraine remains largely the same. It is still buying cheap Russian oil -- in fact, it has bought nearly as much in the first months of 2022 as it did in whole of 2021, according to Reuters -- and it remains quiet on Moscow's invasion. As recently as April 7 it abstained from a UN vote suspending Russia from the Human Rights Council.
      India, analysts say, just taught the West a masterclass in international diplomacy.
      With India vital to US efforts to counter the rise of China -- seen by the US as potentially an even bigger threat to world peace than Russia -- the West needed to bite its tongue.
        Or as Harsh V. Pant, a professor in international relations at King's College London, put it, the United States realized it needed to treat India as a "new partner that needs to be wooed."

        Why is India vital to the US?

        Both New Delhi and Washington are becoming increasingly uneasy over China's growing military might, its aggressive territorial claims on land and at sea, and its growing economic influence over its smaller neighbors.
        Under President Xi Jinping, China's military -- the People's Liberation Army -- has grown to field the world's largest navy, technologically advanced stealth fighter jets and a growing arsenal of nuclear weapons.
        Indian Defense Minister Rajnath Singh, Indian External Affairs Minister Subrahmanyam Jaishankar, US Secretary of State Antony Blinken and US Defense Secretary Lloyd Austin at a news conference in Washington on April 11.
        Part of Washington's plan to counter this rests with India's inclusion -- alongside the US, Japan and Australia -- in the increasingly active security grouping known as the Quad, said Pant, who is also head of the Strategic Studies Program at the Observer Research Foundation in New Delhi.
        Meanwhile, India has its own concerns with China. The two countries have been engaged in a military standoff along their shared Himalayan border that has claimed dozens of lives in the past couple of years. And, in an irony that won't have been lost on Washington, India relies heavily on Russian arms to equip its military -- including in the Himalayas.