A police chase began after an officer spotted a man he knew was banned from driving at the wheel of a car.
Peter Bradley, 47, had been disqualified from driving in December last year.
He received a 17-month ban for drink driving. However, just a few weeks later he was driving again Blackpool magistrates heard.
Bradley, of Sheringham Way, Poulton, admitted driving while disqualified on January 8.
He also admitted driving without insurance, failing to stop when ordered to do so by police and trespassing on the railway.
John Abbott, prosecuting, told the court Bradley was driving a white Ford Fiesta at 11.20pm on Amounderness Way.
Police followed Bradley but he started to take evasive action. He sped through Poulton as the police car pursued him.
His car hit a wall and he then tried to get away on foot through a garden and onto a railway embankment.
He scrambled down that and crossed the tracks to Poulton station where he was caught by police.
Patrick Nelligan, defending, said: “There were not many people about at the time this took place.
My client has been going through a bad period in his life and he tried to evade police in a moment of panic.”
Bradley was given an eight week jail term, suspended for a year.