Resolute Sri Lankan batting and bad weather frustrated Australia's bid for a series-clinching win as the second Test ended in a draw in Pallekele on Monday.
Just 35.3 overs were bowled on the final day, in which Sri Lanka moved from their overnight score of 223-2 to 317-6 in the second innings, an overall lead of 80 with four wickets in hand.
Three half-centuries led a determined batting display by the hosts, who had faced defeat after being shot out for 174 in their first knock.
Seamer Ryan Harris finished with 3-54 as the tourists chipped away at the Sri Lankan middle order, but rain did not leave enough time for Michael Clarke's men to force the result that would have given them the series.
"It was a disappointing end," said Clarke, who is leading Australia for the first time in a full Test series. "We lost almost 100 overs in the match and that was frustrating for both teams.
"If we had a full day's play, we had a very good chance to win. I was really happy with the way we bowled today.
"I am told it is raining in Colombo too. It will be a shame if the weather affects the game because this series has been played really well."
Sri Lankan captain Tillakaratne Dilshan said he was delighted at his team's batting in the second knock.
"We finally batted well after three bad innings in the series and that gives us a lot of confidence going into the final Test," Dilshan said, adding that he did not believe that Australia were guaranteed a win before the rain hit.
Australia removed the two star batsmen with the second new ball, which was taken as soon as it was due after one over from Trent Copeland with the old ball.
Sangakkara failed to add to his overnight score of 69 when he was squared up by a lifting delivery from Harris and edged a waist-high catch to Clarke at second slip.
The dismissal broke a threatening 101-run stand for the third wicket between Sri Lanka's main batting hopes.
Clarke then dived to his left to snap a stunning low catch in the slips and send back Jayawardene for 51 off the bowling off Copeland.
Jayawardene stood his ground as the umpires debated whether the ball had touched the ground before landing in Clarke's hand, but replays confirmed it was a clean catch.
Sri Lanka were 288-4, a lead of 51 runs, when a sharp shower drove the players back to the pavilion and the umpires ordered lunch 30 minutes early.
When play resumed, Australia grabbed two wickets in the space of six runs to reduce Sri Lanka to 307-6.
Source: AFP Global Edition