SBI had a bad day, sliding the most by 5.36%. Others that dragged the key indices down were M&M, Reliance Industries and L&T.
Sentiment was hurt after market regulator Sebi directed bourses to initiate action against 331 suspected shell companies.
The derivatives expiry on Thursday is also expected to add to the volatility.
Investors booked profits in recent gainers
The NSE Nifty after shuttling between 10,441.90 and 10,341.90, ended 6.15 points, or 0.06 per cent down at 10,380.45.
It was the second straight week of gains for the benchmarks.
The May Nifty option chain and the three-month Nifty chains offer several signals worth noting.
Maruti Suzuki was the biggest gainer among Sensex scrips, rising 5.89 per cent, followed by M&M up 5.29 per cent.
Independent market analyst Ambareesh Baliga points out the red flags that retail investors should not have ignored and lists three scenarios -two of these scenarios offer a glimmer of hope to retail shareholders of Yes Bank - that could play out in the coming days.
The broader NSE Nifty too dived by 101.65 points, or 0.97 per cent, to close at 10,350.15.
Broader market outperformed the frontline indices with the Smallcap and Midcap gaining up to 1%
Sentiment was largely positive after April IIP grew at 4.9 per cent, spurred by higher growth in manufacturing and mining sectors.
The Nifty rose 176.50 points, or 1.74 per cent, during the week.
The 50-share NSE Nifty ended up 37.05 points, or 0.36 per cent, at 10,397.45 points
Coal India topped the losers' list in the Sensex pack on Tuesday, falling 2.36 per cent, followed by Bharti Airtel at 2.16 per cent.
But the 30-share Sensex rose by 141.52 points, or 0.41 per cent, to close at 34,297.47. The broader NSE Nifty gained 44.60- points, or 0.42 per cent, to end at 10,545.50 after touching a high of 10,618.10.
Despite a strong start to trade today, key benchmark indices retreated sharply from their higher levels following bouts of profit-taking amid fresh weakness in the rupee against the dollar.
Construction major L&T was the biggest gainer among the Sensex components, spurting 2.30 per cent, after the company said its board has approved a Rs 9,000-crore share buyback plan.
The NSE Nifty too recovered over 100 points, or 0.96 per cent, to end at 10,576.85.
Investor sentiments remained upbeat tracking global developments as the US, China geared up for trade talks due this week.
A declining rupee, elevated crude oil prices and sustained foreign fund outflows added to the gloom
In the longest losing streak of 2017, the BSE Sensex has lost 1,270 points, or 3.91 per cent. It fell to a three-month low of 31,154.03 on Wednesday.
Muted quarterly earnings, mixed cues from global markets and unabated foreign fund outflows added to the volatility
The BSE Sensex moved up 103 points to 35,319.35, while the wider NSE Nifty finished at 10,741.70, up 23.90 points.
The 30-share Sensex, after opening on a strong footing, continued its upward march to hit an all-time high of 35,827.70. The NSE Nifty also hit a record intra-day high of 10,975.10, before finishing at 10,966.20, up 71.50 points.
The broader NSE Nifty gained 22 points to 10,480.60
The 50-issue NSE Nifty too cracked the 10,200-mark and hit a low of 10,108.55 before finishing 104.75 points, or 1.02 per cent down at 10,121.80.
Muted global trend after a report that US President Donald Trump was preparing to impose more tariffs on China hurt trading sentiments.
Among the gainers, Sun Pharma topped by rising 3.03 per cent as the weak rupee tempted buyers to accumulate shares of pharma exporters.
The BSE Sensex zoomed 318 points to end at 33,351.57, while the broader Nifty spurted 88 points to 10,242.65.
Sun Pharma was by far the biggest gainer in the Sensex pack, surging 8.13 per cent, followed by Dr Reddy's at 4.92 per cent.
Banking stocks felt the heat due to worries that the lending rate cuts will hit their bottom line
Fresh buying by domestic institutional investors and better-than-expected June quarter results from some blue-chip companies boosted investor sentiment
Most of the session's gains for both the indices were wiped out as investors rushed to book profits ahead of F&O expiry on Thursday and also due to concerns over stretched valuations.
The Sensex and Nifty remained above their key levels of 36,000 and 10,900 throughout the session, indicating strong investor optimism after a prolonged spell of caution.
Gains in key IT, capital goods, healthcare and metal stocks, after consistent buying by domestic and foreign investors, helped both the key indices to scale new peaks.
Bajaj Auto was the top gainer in the Sensex pack, surging 3.95 per cent followed by Maruti Suzuki at 2.69 per cent.
Tata Steel was the day's worst performer in the Sensex pack, plunging 3.25 per cent, followed by Bharti Airtel at 3.05 per cent.
The hectic buying by domestic institutions, as also by some top-shot brokers in their proprietary accounts, was in sharp contrast to heavy selling of stocks by foreign portfolio investors
Sun Pharma dipped 2% to Rs 615 on the BSE, its lowest level since November 9, 2016