The sentiment was boosted after the rating agency Moody's said that the outlook on its Baa3 rating for India is stable.
On the political front, the Manmohan Singh led United Progressive Alliance government has ensured that they have enough numbers in Parliament to pass the FDI recommendations this also added to the positive sentiment of the street.
The Sensex closed higher by 305 points at 18,842 and the 50-share Nifty closed above the crucial psychological levels of 5,700, up 91 points to end at 5,727.
The Asian markets ended on a mixed note in trades today as global lenders reached a deal on new debt targets for Greece and a political agreement on disbursing the next installment of aid.
The Hang Seng ended lower by 18 points at 21,844 and Shanghai Composite slipped 26 points to end at 1,991.
While, Nikkei advanced 0.4% or 34 points to end at 9,423, Straits Times and Seoul Composite also closed on a positive note.
The European markets were also trading on a positive note on the news from Greece that the lenders reached a deal a deal to reduce Greek debt and disburse the country's next aid installment.
The CAC40, DAX and FTSE were trading higher by 0.5-0.7% each.
Back home, Moody's said on Tuesday that the outlook on its Baa3 rating for India is stable, in part due to the country's high savings and investment rates, as debate rages in Delhi over whether the country can avoid credit downgrades from other rating agencies.
In its annual credit analysis on India, which Moody's said does not constitute a rating action, the agency also cited the country's large, diverse economy and strong gross domestic product growth as supportive of the rating.
Bharti Airtel was the top Sensex gainer.
The stock jumped 5.2% to end at 326 after the Reserve Bank of India has relaxed the external commercial borrowing (ECB) policy for the 2G spectrum auction
Shares of HDFC Group companies -- Housing Development Finance Corporation and HDFC Bank surged almost 3% each on the Bombay Stock Exchange on back of heavy volumes.
HDFC Bank, a unit of HDFC, ended near its historic high the stock closed higher by up 3% at Rs 684, after the bank's American depository receipt gained 2.38% to settle at $41.23 on the New York Stock Exchange on Monday, 26 November 2012.
Shares of metals companies ended higher on the bourses after LMEX, a gauge of six metals traded on the London Metal Exchange, rose over 1%
Mallya: Finest brain in India's spirits industry
Sandy forces shutting of NYSE, Nasdaq for second day
RGV: With Kasab's hanging, I have got ending for my film
A pre-approved loan does not mean bank will lend
SBI plays down S&P move, asset quality to improve by Mar