The 30-share Sensex ended at 17,707 up 85 points or 0.5% and the 50-share Nifty ended at 5,368 up by 33 points or 0.6%.
The Sensex and the Nifty reached an intra-day high of 17,809 levels and 5,397 mark, respectively.
On the global front, Asian markets advanced after Toyota Motor raised its profit forecast and as Greece's government edged closer to securing a bailout package.
Strait Times, Shanghai Composite Nikkei, Kospi, Hang Seng and Taiwan Index gained between 0.3-1%.
Key European share indices are trading higher with CAC, DAX and FTSE gaining between 0.2-1%.
European markets are up on hopes that Greece debt deal may get approved today.
Back home, Reliance Industries surged 1.57% at Rs 845.
The stock is close to its maximum buyback price of Rs 870 per share. The company's buyback programme commenced from February 1.
On Tuesday, Goldman Sachs upgraded RIL to buy from neutral, citing a potential lift in margins on increased refining and recovering oil demand.
Technology shares were up on upbeat economic data from the US from where software majors earn most of their revenues through exports.
Infosys, Wipro and TCS gained by almost 2% each.
On Tuesday, TCS said it has inked a multi-year, multi-million euro contract with European car rental company Europcar for deployment of IT services in France.
DLF gained by almost 3%. Realty stocks gained on expectations that the central bank will start cutting interest rates in the coming months to prop up slowing economy.
From the banking space, SBI is up by nearly 1%.
HDFC gained by nearly 2%.
However, ICICI Bank was down over 2% after nearly 15.9 million shares, representing 1.4% of ICICI Bank's equity changed hands in a block deals at a weighted average price of Rs 924.16
Markets end higher led by banks
Broader markets outperform benchmarks
PHOTOS: India's 30 biggest companies
When stocks get delisted, what MUST the investors do
Heavyweights buoy markets, financials shine