Fnideq (Berber: ⴼⵏⵉⴷⵇ, Arabic: الفنيدق) is a town in northern Morocco, on the Mediterranean coast of M'diq-Fnideq Prefecture, 31 kilometres (19 mi) north of the city of Tétouan. The town is also known under the Spanish name Castillejos. It is the closest Moroccan city to the Spanish exclave of Ceuta. During the Hispano-Moroccan War of 1859, it was the location of the decisive Battle of Castillejos.