India’s benchmark stock indices ended the week and the month of July on a firm footing, delivering their strongest monthly showing in three months. The upbeat finish reflected stronger investor confidence in Indian equities after a stretch of closely watched earnings updates.

Market sentiment was supported by better-than-expected corporate results, which analysts said helped offset concerns about higher oil prices. With earnings from listed companies providing reassurance about business performance, traders appeared more willing to look past some of the pressure that elevated crude costs can create for the broader economy.

The Nifty and Sensex were at the center of the advance, capping July with notable gains. The move suggested that positive company-specific developments and a steadier outlook for profits were enough to keep the market’s momentum intact through the end of the month.

Overall, July’s finish pointed to improved resilience in Indian equities. Even as oil price risks remained part of the market conversation, strong corporate earnings gave investors a clearer reason to stay optimistic heading into the next phase of trading.