Martin traveled to Gaza to give testimony on behalf of a Palestinian militant charged with collaborating with Israel. He was then detained for what his lawyer, Sharhabil al-Zaim, has said was an unspecified "security charge.
The Hamas-run interior ministry had accused Martin of "violating Palestinian law and security in the Gaza Strip," without providing further details.
Martin, who has freelanced in the area for over five years, was handed over to a delegation from the British consulate and driven in an armoured vehicle to the Erez crossing with Israel.He is the only foreigner to be arrested in the Gaza territory since the Islamist group seized power in June 2007.