Indian markets opened positively but then declined due to weak global cues, trading in the red for most of the day before ending flat ahead of an expiration of futures and options contracts. The Nifty closed marginally above 6,100 levels while the real estate sector declined the most. Sun Pharmaceutical rallied after reporting strong quarterly results.