The NSE Nifty 50 ended 1.69% higher at 22,535.85, while the BSE Sensex closed 1.49% higher at 74,227.
Infosys Ltd., Reliance Industries Ltd., Larsen & Toubro Ltd., Bharti Airtel Ltd. and ICICI Bank Ltd. were among the top gainers.
Nifty Media, Nifty PSU Bank, Nifty Bank and Nifty Pharma snapped their losing streak, while Nifty Oil and Gas, Nifty Auto, Nifty Metal and Nifty Realty snapped their three-day losing streak.
The broader markets also ended higher, with the BSE MidCap rising 1.87% and the SmallCap index rising 2.18%.