A Kenyan court has released nine Somali men accused of piracy, saying it has no jurisdiction to try their case.

High Court Judge Mohammed Ibrahim ordered the men to be released and repatriated Tuesday after saying Kenyan courts could not deal with matters that take place outside of the country.

The nine men were captured by a German naval vessel in the Gulf of Aden in March 2009 after an attack on the German-owned freighter MV Courier.

The ruling comes just days after a separate court released 17 suspected Somali pirates due to lack of evidence.

More than 100 suspected Somali pirates are currently being held in Kenyan prisons.

Some information for this report was provided by AP and AFP.