In-form Australian David Hussey struck 150, his second century in successive Championship innings, to dig Nottinghamshire out of a hole against Lancashire at Trent Bridge.
The hosts, who won the toss, were 107 for five before Hussey took control, hitting 22 fours and a six from 177 balls. Hussey was dropped when on two, Dominic Cork putting down a chance off Oliver Newby at second slip.
The 29-year-old shared a sixth wicket stand of 226 with Mark Ealham, who scored 83, in a Nottinghamshire record against Lancashire.
The day could have ended very differently but for Cork's dropped catch as Lancashire were in charge after 29 overs with five early wickets.
Darren Bicknell went leg-before for six to Cork and Jason Gallian quickly followed as Lancashire skipper Mark Chilton took a terrific diving catch at point.
Nottinghamshire captain Stephen Fleming countered with some fine shots as he raced to 50 off 44 balls but saw David Alleyne drive Tom Smith loosely straight to Chilton at short cover.
Hussey was dropped in the next over and soon afterwards Fleming was out for 53 after padding up to Smith.
Chris Read was an lbw victim of some variable bounce as Newby produced a fine delivery off a length and then saw his next ball keep low off virtually the same spot to trap Read in front.
At that point Nottinghamshire's relegation fears looked very real but Hussey was soon able to turn things around before he holed out to long-on off Gary Keedy.
Ealham had been a quiet partner but still managed ten boundaries off 192 balls before he played on off Newby.
Ryan Sidebottom edged to Stuart Law at slip off Keedy soon after but Graeme Swann and AJ Harris played enterprisingly. They ended up three short of maximum batting points as Graeme Swann edged the new ball off Glen Chapple behind and Charlie Shreck was leg-before to Cork.