Background. The COVID-19 lockdown determined important changes in the sleep of a large percentage of the world population. We assessed the modifications of reported sleep patterns and disturbances in Italian children and adolescents with autism spectrum disorders (ASD) or attention deficit hyperactivity disorders (ADHD), compared to control children, before and during the COVID-19 lockdown in Italy. Methods. Parents of 100 ASD, 236 ADHD patients, and 340 healthy children filled out an anonymous online survey and a modified version of the Sleep Disturbance Scale for Children (SDSC), advertised via social media, to evaluate sleep patterns and disturbances of their children before and during the lockdown. Results. Before the lockdown, bedtime and risetime were not different between the three groups. During the lockdown, ADHD children tended to have a later bedtime and risetime than ASD and controls, while ASD children tended to maintain similar bedtime and risetime. Overall, during the lockdown, a reduced sleep duration significantly differentiated clinical groups from controls. Anxiety at bedtime, difficulties in falling asleep, and daytime sleepiness increased in all groups during the lockdown. Hypnic jerks, rhythmic movement disorders, night awakenings, restless sleep, sleepwalking, and daytime sleepiness increased in ASD and ADHD patients, in particular. Conclusions. This is the first study comparing sleep habits and disorders in ASD and ADHD during the lockdown showing specific differences consistent with the core characteristics of two neurodevelopmental disorders.