AMMAN, Jordan — An Israeli man detained in Jordan has appeared before a state security court where he was charged with illegally entering the country and possessing drugs.

The 35-year-old Israeli pleaded guilty on Monday to entering Jordan illegally but denied the other charge. Konstantin Kotov said that possessing a small amount of marijuana is legal in Israel. The judge rejected that argument, saying he had violated Jordanian law.

Kotov, who was arrested on Oct. 29, did not say why he traveled to Jordan.

Israel and Jordan signed a peace treaty 25 years ago, but relations have cooled in recent years over the stalled Israeli-Palestinian peace process and Israeli policies in occupied and annexed east Jerusalem, where Jordan has custodianship over Muslim holy sites.

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.