The markets ended 0.5% higher led by gains in the information technology, power and automobile sectors. Positive global cues and strong July FDI numbers boosted investor sentiment. The Sensex closed at 26631.29, up 138.78 points while the Nifty gained 42.60 points to settle at 7975.50. Major contributors to the indices' gains were Infosys, TCS, Reliance Industries and Tata Motors.