The Nifty50 closed higher by 20.65 points or 0.20 percent at 10,584.70 points, while the Sensex closed at 34,450.77 points - up 35.19 points or 0.10 percent.
Worldwide oil prices hit their highest levels since late 2014 due to expectations of renewed United States sanctions against Iran and as OPEC continued withholding supplies amid strong demand.
Among BSE sectoral indices, realty, IT, TECk and healthcare remained investors' favourite, while metal, infrastructure, consumer durables and FMCG succumbed to selling pressure.
Oldest person in the world, Nabi Tajima, dies aged 117 in Japan
She became the world's oldest person in September following the death of Violet Brown, in Jamaica, at the age of 117. According to BNO News , she said that her secret to health was "eating delicious things and sleeping well".
In terms of investments, provisional data with the exchanges showed that foreign institutional investors sold scrip worth Rs 259.08 crore, while the domestic institutional investors purchased stocks worth Rs 387.26 crore.
However, the metal index tumbled 1.82 per cent as aluminium prices continued to fall after the U.S. softened its stance on sanctions against Russian metals giant United Company Rusal.
In the broader market segment, the S&P BSE mid-cap index closed higher by 0.49 per cent and the small-cap index inched up by 0.53 per cent.
Shares of HDFC Bank Ltd rose as much as 1.2 per cent to ₹1,979 in early trade before slipping into negative territory.
YES Bank, Dr Reddy's Labs and HDFC were among the top gainers in the Sensex index.