A dangerous driver who failed to stop for detectives and took off at high speed later abandoned the vehicle in the car park of Malahide Castle.
Douglas Purcell (36) was arrested after gardai used CCTV footage to identify the route his car took through the village of Malahide.
Judge John Cheatle ordered Purcell to complete 140 hours of community service in lieu of six months in prison.
The judge also disqualified him from driving for six years.
The defendant, of Springdale Road, Raheny, admitted charges of dangerous driving as well as driving without insurance or a licence.
The incident took place at Back Road in Malahide last May 6.
Det Gda Michael McCabe told Swords District Court he was on patrol at around 4pm when he observed a 142-registered vehicle.
Det Gda McCabe said he signalled for the vehicle to stop but it failed to do so.
The driver then took of at high speed along Back Road in Malahide, which is a residential area, and a chase ensued.
Gda McCabe said gardai caught up with the vehicle, but by then Purcell was gone and had abandoned it in the car park of Malahide Castle.
The garda said he investigated the route the vehicle took and Purcell was later arrested and charged. He co-operated fully with gardai and admitted he was the driver, Gda McCabe said.
The court heard Purcell had 124 previous convictions, including 13 for uninsured driving, seven for dangerous driving and two for careless driving.
Defence solicitor Joseph Coonan said Purcell had a "long history" and a "chequered past".
Mr Coonan said the defendant was married and the father of three children.
He was unemployed and on social welfare.
Mr Coonan said Purcell had problems with drugs in the past but was now clean.
Mr Coonan also said Purcell was "doing very well" and was "not coming to the attention of gardai at the moment".