The International Criminal Court has rejected a Libyan challenge to its prosecution of Saif al-Islam Gaddafi.
The ICC at The Hague also reminded Libya of its obligation to hand the son of the late Libyan ruler Colonel Muammar Gaddafi over to the court. Judges said Libya is not ready to try him.
Both Libya and the ICC want to try Saif Gaddafi for crimes committed during the uprising.
Saif is in the custody of a militia group that captured him in November 2011 and is not in official state custody.
The BBC reports he is being held in the town of Zintan, where he is accused of complicity in exchanging information, obtaining documents that threaten national security and insulting the national flag.
The charges are linked to a visit in June 2012 by ICC lawyer Melinda Taylor and three other ICC personnel.
Ms Taylor was accused of clandestinely passing Mr Gaddafi a coded letter from a fugitive former aide.
The ICC team was held for three weeks and then released to The Hague.