Nitrazepam may also help you sleep for a longer time. Nitrazepam is also used in children and infants to treat a certain type of seizure (myoclonic). Nitrazepam medication belongs to a class of drugs called benzodiazepines, which act on the brain to produce a calming effect. It works by enhancing the effects of a certain natural chemical in the body.