Markets rallied for the third straight session as Sensex rose 583 points to 81,790 and Nifty closed above 25,000. IT and private banking stocks led the gains, while metal and FMCG stocks dragged. TCS and Tech Mahindra gained, whereas Tata Steel and Adani Ports slipped. Broader markets also ended higher.