Lacklustre global cues and a depreciating rupee also weighed on the markets, analysts said.

The 30-share index opened on a positive note at 38,452.47, but soon succumbed to heavy selling pressure, touching an intra-day low of 38,089.36. It finally closed at 38,164.61, down by 222.14 points, or 0.58 percent.

On similar lines, the NSE Nifty shed 64.15 points, or 0.56 percent, to finish at 11,456.90.

Representational image. Reuters.

On a weekly basis, the Sensex added over 140 points, while the wider Nifty gained 30 points.

NTPC emerged as the biggest gainer in the index, spurting 3.67 percent. Other winners included L&T, Asian Paints, Tata Steel and PowerGrid, rising up to 1.54 percent.

"Domestic market ended on a weak note as investors turned to profit booking given the sharp rally in last two weeks and weak global cues. US Fed has indicted that there will be no rate hike this year and ended its ongoing QE tightening program due to concern over economic growth.

"On the other hand, uncertainties over Brexit deal and delay in a trade deal between US-China continued to impact global markets. Global bond yields were on decline as global central banks were tweaking their monetary policy to support growth, this is likely to benefit emerging markets like India in the medium term," said Vinod Nair, Head of Research, Geojit Financial Services.

Foreign institutional investors (FIIs) remained net buyers in the capital markets, putting in Rs 1,771.61 crore on a net basis Wednesday, as per provisional data.

Meanwhile, data showed that German manufacturing contracted for the third straight month in March, highlighting global growth concerns.

Meanwhile, the rupee was trading weak by 10 paise to 69.93 against the US dollar in late afternoon trade.

Your guide to the latest seat tally, live updates, analysis and list of winners for Lok Sabha Elections 2019 on firstpost.com/elections. Follow us on Twitter and Instagram or like our Instagram or like our Facebook page for updates from all 542 constituencies on counting day of the general elections.