A man caught carrying a fake Irish passport had got the document to try to get work here, a court has heard.
Gardai found Aliyu Hamzat (20) with the forged passport when they were called to a road accident in west Dublin.
He was arrested and ended up spending a week in custody.
Judge David McHugh fined the defendant €100 and told him to pursue an application for asylum.
Hamzat, of Linnetsfield Court, Clonee, pleaded guilty to possession of a false Irish passport.
He also admitted failing to produce a temporary registration card under the Immigration and Refugee Acts.
Blanchardstown District Court heard gardai went to the scene of a road traffic collision at Kilshane Road, Finglas, last September 21.
The accused was asked to produce documents at the scene and had a passport in the back pocket of his jeans.
This was in a different name to another document he had.
Hamzat had been in Ireland for a year-and-a-half, his solicitor John O'Doherty said. He had got the passport in order to gain employment.
Hamzat had ended up spending a week in custody because of the matter, Mr O'Doherty said.
The accused, who was originally from Nigeria, had dealt with the case at the first available opportunity.
Judge McHugh asked what the defendant was doing at the moment.
The court heard he was not working and was trying to regularise his status. He had not applied for asylum yet.
Mr O'Doherty asked for leniency. The judge fined Hamzat, giving him nine months to pay.
Hamzat gave the court an undertaking that he would attend the garda National Immigration Bureau at Burgh Quay.