Eamonn Dunne, unemployed, of Dunsoghly Drive, Finglas, was brought before Dublin District Court in relation to an incident in which a man was found bound and gagged in a vehicle which was stopped by gardaí.
Detective Garda Paul Keane gave evidence of arresting Dunne at Glasnevin Avenue, Glasnevin, at 8pm on Wednesday.
He was taken to Santry Garda Station and held for questioning.
Dunne was charged with false imprisonment under Section 15 of the Non-Fatal Offences Against the Person Act 1997.
An application for bail by Dunne's solicitor, Chris Ryan, was refused by Judge Anne Watkins.
Det Garda Keane said he was opposing bail because of the seriousness of the charge and weight of evidence against the accused.
He asked for Dunne to be kept in custody because the alleged
offence had been committed while he was on bail on other matters, and due to the potential severity of the penalty that the accused was facing.
If convicted on indictment, Dunne could face life in prison. If subject to a summary conviction, Dunne will be liable to a maximum 1,904 fine and/or a 12-month prison sentence.
Judge Watkins remanded Dunne to appear before Cloverhill District Court on Thursday.
The man discovered in the boot of the car was released from Beaumont Hospital after being treated for minor injuries.