The modified electrode was prepared using a layer-by-layer method with functionalized CNPs and SDS. The ability of modified electrode to adsorb ciprofloxacin was investigated. Ciprofloxacin was analyzed in real samples.