The Iran war, the closure of the Strait of Hormuz, soaring crude prices above $100 per barrel, a sharply weakening rupee and relentless foreign fund outflows have created one of the toughest backdrops for Indian equities in recent years.The Strait of Hormuz, arguably the world’s most critical artery for crude oil supply, remains disrupted, keeping global markets on edge. Foreign institutional investors have only added to the pressure. FIIs have sold over $22 billion worth of Indian equities so far in 2026, already surpassing last year’s $19 billion outflow and marking the deepest annual exodus in more than two decades.Yet amid the turmoil, five sectors have staged a remarkable outperformance. Pharma, Energy, Defence, Capital Markets and Metals have all hit fresh 52-week highs even as the benchmark Nifty50 has fallen more than 7% during the same period. Analysts say the rally is not merely a defensive flight to safety, but increasingly reflects structural earnings visibility and long-term growth tailwinds.Structural tailwindsFor pharma companies, the sector’s resilience is being driven by multiple powerful triggers coming together at the same time. “Pharma's resilience stems from multiple converging tailwinds. Rupee depreciation provides an earnings tailwind given their net exporter status, but that is not the primary driver. The China+1 shift — global innovators and generic buyers actively diversifying supply chains away from Chinese API and CDMO dependency — is now translating into signed contracts and revenue for Indian manufacturers,” Sneha Poddar, VP Research at Motilal Oswal told ETMarkets.According to Poddar, the domestic pharma market itself continues to compound at around 10%, while biosimilars and GLP-1 generics are opening entirely new profit pools for Indian drugmakers. She added that margin expansion is increasingly becoming structural, driven more by improving product mix than simple operating leverage.Indigenous boostDefence stocks, meanwhile, have evolved far beyond short-term geopolitical trade. Sumit Singhania of Bajaj Broking said the sharp gains in defence shares indicate that markets are beginning to price in a deeper, multi-year transformation in India’s strategic ambitions rather than reacting only to the Iran conflict.“Investors are increasingly betting on the government’s clear intent to build domestic defence capabilities while simultaneously positioning India as a global export hub,” he said.Backed by aggressive indigenisation policies, rising manufacturing capacities and strong long-term order visibility, India’s defence sector is increasingly being viewed as a structural growth story. The re-rating in defence stocks reflects growing confidence that India’s military modernisation push can eventually evolve into a globally competitive industrial ecosystem, provided policy support remains intact.Energy’s demand upcycleThe energy sector, too, is benefiting from a powerful long-term demand story that extends well beyond the current geopolitical crisis. India is already the world’s third-largest electricity consumer, but its per capita power consumption remains relatively low at around 1,460 kWh, barely one-fifth of China’s level. That gap highlights the massive runway for future demand growth.Rapid urbanisation, industrial expansion, rising air-conditioner penetration and millions of newly electrified households are steadily driving electricity consumption higher across the country.Adding to this is an entirely new source of demand: data centres. India’s data centre capacity stood at 1,700 MW at the end of 2025 after a record addition of 440 MW during the year. Capacity is projected to rise to 4–5 GW by 2030, backed by nearly $30 billion in investments. AI-led data centres operate around the clock, making them a stable and structural addition to future grid demand.Savings to participationCapital market stocks are drawing strength from another deep structural shift unfolding in India: the financialisation of household savings. Ravi Singh of Master Capital Services said retail inflows through SIPs continue to scale record highs, providing a strong cushion against foreign institutional outflows and reinforcing the resilience of domestic markets.Assets under management in the mutual fund industry have surged from around Rs 12 lakh crore in FY16 to nearly Rs 82 lakh crore as of April 2026. Monthly SIP inflows have crossed Rs 31,000 crore compared with just Rs 3,000 crore a decade ago.At the same time, average cash market turnover during the first four months of 2026 stood at around Rs 1.33 lakh crore, compared with the Rs 1.1 lakh crore monthly average in 2025, signalling a steady rise in investor participation.Analysts say this is not a temporary liquidity-driven spike but a structural deepening of India’s retail investing ecosystem, supported by consistent SIP inflows, rising participation and elevated trading activity, all of which continue to strengthen earnings visibility for market intermediaries.Metal's supply constraintMetals have emerged as another standout sector amid the global turmoil. Sandeep Neema of PL Asset Management told ETNOW that the metals sector is currently in the midst of a structural bull cycle due to a prolonged lack of capacity additions globally across base metals over the past decade.According to Neema, metals such as copper, aluminium and steel have seen very limited fresh capacity creation worldwide, while excess capacities in China and some other countries have also been gradually scaled down.That has created a favourable demand-supply equation globally, with the ongoing war only accelerating demand further. Neema noted that metal consumption is witnessing a broad-based uptick, driven by renewable energy investments, growing EV adoption and large-scale infrastructure spending across markets.Defensive play or long-term opportunity?These sectors have undoubtedly attracted investor interest during a period of heightened geopolitical uncertainty. But analysts argue that describing the rally as merely a safe-haven move would overlook the significant improvement in underlying fundamentals.Defence is benefiting from record order pipelines and India’s accelerating push towards co-production and indigenisation. Pharma companies are riding strong US generics momentum, rupee tailwinds and healthy domestic formulation growth. Energy stocks are backed by a structural power demand upcycle, while capital market plays continue to benefit from rising retail participation and expanding AUMs.“Geopolitical uncertainty has accelerated flows, but it is the earnings visibility and strong policy tailwinds behind each sector that are sustaining valuations and making the re-rating fundamentally justified,” Poddar said.While near-term volatility linked to geopolitics, crude prices and foreign flows is likely to persist, analysts believe the recent outperformance in these sectors is being supported by stronger underlying fundamentals rather than sentiment alone. Continued policy support, earnings execution and sustained domestic participation will remain key factors to watch. Whether the rally extends further may ultimately depend on how effectively these sectors convert favourable long-term trends into consistent growth and profitability over the coming quarters.(Disclaimer: Recommendations, suggestions, views and opinions given by the experts are their own. These do not represent the views of The Economic Times)