The NSE Nifty ended 89.40 points, or 0.83 per cent, lower at 10,710.45.
Barring oil and gas, all BSE sectoral indices finished in the green.
The market breadth, indicating the overall health of the market, turned negative from positive
Top gainers include Yes Bank, HUL, Vedanta, NTPC, Bharti Airtel, Adani Ports, PowerGrid and Tata Motors, rising up to 5 per cent.
In the Sensex kitty, ITC turned star performer by surging 2.45 per cent, followed by NTPC rising 2.19 per cent.
The Sensex swung over 660 points both ways on alternate bouts of selling and buying before closing the day higher by 97.39 points, or 0.28 per cent.
Top losers in the Sensex pack include Bharti Airtel, Infosys, Asian Paints, RIL, Coal India, HDFC Bank, HDFC, TCS, ONGC and M&M, falling up to 3.09 per cent.
Strong gains in metal, energy, auto and power shares lifted the key indices to new highs.
The breadth, indicating the overall health of the market, turned negative. On the BSE, 1,581 shares declined and 1,246 shares fell. A total of 165 shares were unchanged.
Both benchmark indices were driven by strong gains in IT, teck, oil and gas, pharma and banking shares amid earnings optimism.
The fall was led by L&T, IndusInd Bank, PowerGrid, NTPC, TCS, ICICI Bank, Axis Bank, Hero MotoCorp, Bharti Airtel and SBI, declining up to 2.64 per cent.
The BSE Sensex jumped 70.42 points to end at 34,503.49, while the broader NSE Nifty finished at 10,651.20, up 19 points.
The NSE Nifty also gained 53 points, or 0.49 per cent, to settle 10,855.15 after shuttling between 10,870.40 and 10,749.40.
In the broader market, the S&P BSE Midcap ended 0.1% down, while the S&P BSE Smallcap index gained 0.3%.
The Nifty finished the day at 10,265.65, a hefty gain of 98.95 points, or 0.97 per cent, after shuttling between 10,270.85 and 10,195.25.
The wider Nifty hit a low of 10,033.35 before finishing at 10,044.10, down 74.15 points or 0.73 per cent.
On the BSE, 1,650 shares declined and 1,188 shares rose
The broader NSE Nifty scaled a high of 10,856.55 before closing up by 55.90 points, or 0.52 per cent
The S&P BSE Midcap and the S&P Smallcap indices rallied over 1% each
Reflecting the bearish mood, all sectoral indices, led by metal, teck and healthcare, ended in the negative zone.
The 30-share Sensex stayed in the green for the better part of the session and hit the day's high of 38,297.70 as buying pace gathered momentum towards the fag-end.
Side indices raced ahead with BSE Midcap and BSE Smallcap advancing 0.4% and 0.3% up, respectively.
The S&P BSE Midcap and the S&P BSE Smallcap indices slipped in red to shed over 1% each
Broader market underperformed with the BSE Midcap and the BSE Smallcap indices losing up to 0.2%
Banking stocks dipped with Nifty PSU Bank index falling 1.7% after the government notified the ordinance that seeks to tackle non-performing loans in the sector.
The fall came on the back of a massive selloff in NBFCs, led by DHFL which skidded over 50 per cent on fears of a liquidity crisis.
BSE Midcap and BSE Smallcap indices hit their fresh lifetime highs for the second day in a row
Among the Sensex losers, Yes Bank tumbled 5.46 per cent, followed by Bajaj Finance 5.40, ICICI Bank 3.82 per cent, IndusInd Bank 3.10 per cent and HeromotoCorp 2.55 per cent.
Investors booked profits in recent gainers
The broader NSE Nifty dipped below the 10,200-mark to hit a low of 10,180.25 before ending at 10,195.15, down by 165 points, or 1.59 per cent.
The market breadth, indicating the overall health of the market was strong
On BSE, 1,826 shares declined and 982 shares rose, while a total of 194 shares were unchanged
Coal India fell the most by 2.58 per cent among Sensex scrips, dragging the index into the negative zone.
Yes Bank was the top gainer in the Sensex pack, surging 3.76 per cent, followed by SBI at 3.18 per cent.
The breadth, indicating strength of the market was strong
There were more than three losers against every gainer on BSE
On BSE, 1,469 shares fell and 1,200 shares rose. A total of 190 shares were unchanged.
The NSE Nifty too ended 58.60 points, or 0.54 per cent, higher at 10,967.30 after shuttling between 10,985.15 and 10,928 during the session.
Covering-up of pending short positions on expiry of the July derivatives contracts and a strengthening rupee propped up the markets at high levels
Sun Pharma was the biggest gainer in the Sensex pack, advancing 1.79 per cent.