Moreover, a firming trend in global markets, after Greek PM Alexis Tsipras was reportedly prepared to accept creditors' demands for a bailout buoyed sentiments, equity brokers said.
"It seems that the confidence in Indian markets has improved and its outperformance continues to be strong. Today with the news that Greece will accept the bailout, India rallied ahead...," said Vinod Nair, Head of Fundamental Research, Geojit BNP Paribas Financial.
The 30-share index, which had gained 135 points in the previous session, recaptured the 28,000-mark by jumping 240.04 points or 0.86 per cent to close at 28,020.87. Intra-day, it hit the session's high of 28,099.25 and a low of 27,799.91.
Sensex had last ended at 28,442.10 on April 17.
More From This Section
The 50-share NSE Nifty also regained the 8,400-mark by climbing 84.55 points or 1.01 per cent to 8,453.05.
The index had ended at nearly 2-1/2 months high at 8,453.05, disclosing a gain of 84.35 points or 1.01 per cent.
Global cues were also positive on signs that Greece was ready to accept creditors' proposals to end a standoff over a bailout, influenced sentiment.
Banking stocks gained after government said it is examining the funds requirement of public sector banks over three years and promised required capital support as part of a comprehensive package to strengthen them.
State-run SBI surged 1.83 per cent, while private lenders such as ICICI Bank gained 1.35 per cent, Axis Bank jumped 3.60 per cent on BSE.