(CNN) -- A record partnership between Eoin Morgan and Paul Collingwood rescued England on the opening day of the first Test against Pakistan.
Morgan recorded his maiden Test century, while Collingwood added 81 not out as England closed on 331-4 at Trent Bridge in Nottingham.
The pair came together just after lunch when England had been reduced to 118-4 by some astute bowling from Pakistan.
But they steadied the ship before going on to compile England's highest ever fifth-wicket partnership against Pakistan, as Morgan closed on 125 not out.
After his innings Morgan told Sky Sports: "Under the circumstances, the ball was in Pakistan's court early on, the ball did a bit but me and Colly got in and put together a partnership we are really happy with."
England won the toss and elected to bat, despite some gloomy clouds hanging over Trent Bridge, and could have been in trouble early on had wicketkeeper Kamran Akmal not dropped an easy chance from Andrew Strauss off the bowling of Mohammad Aamer.
Aamer wasn't to be denied though and he had Alastair Cook caught at slip for just 8 by Imran Farhat as England were reduced to 42-1.
Strauss and Jonathan Trott put on 51 before the England captain was caught by Akmal as Aamer picked up his second wicket.
Kevin Pietersen was next to the crease but he rarely looked comfortable and managed just 9 before he was bowled by Mohammad Asif.
Trott followed Pietersen to the pavilion almost immediately as he left a delivery from Aamer and was trapped LBW. Trott called for a review, but the decision was upheld.
His dismissal brought Morgan to the crease and he and Collingwood set about rebuilding England's innings. Morgan displayed a cool head in what was only his third Test, combining a stout defense with some inventive attacking shots.
Morgan stepped things up a gear in the final session and capitalized on some loose Pakistan bowling but he was handed a reprieve when he successfully challenged an LBW verdict when he was on 78.
After that he made no mistake in navigating his way to his first ever Test century and he brought it up in style by hitting Shoaib Malik for six.
Akmal's miserable day continued as he missed the chance to stump Collingwood but England survived the rest of the day to leave themselves in a healthy position at the close of day one.