Many individuals with autism spectrum disorders have comorbid epilepsy. Even in the absence of observable seizures, interictal epileptiform discharges are common in individuals with autism spectrum disorders. However, how these interictal epileptiform discharges are related to autistic symptomatology remains unclear. This study used magnetoencephalography to investigate the relation between interictal epileptiform discharges and altered functional brain networks in children with autism spectrum disorders. Instead of particularly addressing individual brain regions, we specifically examine network properties. For this case-control study, we analysed 70 children with autism spectrum disorders (52 boys, 18 girls, 38–92 months old) and 19 typically developing children (16 boys, 3 girls, 48–88 months old). After assessing the participants’ social reciprocity using the Social Responsiveness Scale, we constructed graphs of functional brain networks from frequency band separated task-free magnetoencephalography recordings. Nodes corresponded to Desikan–Killiany atlas-based 68 brain regions. Edges corresponded to phase lag index values between pairs of brain regions. To elucidate the effects of the existence of interictal epileptiform discharges on graph metrics, we matched each of three pairs from three groups (typically developing children, children with autism spectrum disorders who had interictal epileptiform discharges and those who did not) in terms of age and sex. We used a coarsened exact matching algorithm and applied adjusted regression analysis. We also investigated the relation between social reciprocity and the graph metric. Results show that, in children with autism spectrum disorders, the average clustering coefficient in the theta band was significantly higher in children who had interictal epileptiform discharges. Moreover, children with autism spectrum disorders who had no interictal epileptiform discharges had a significantly lower average clustering coefficient in the theta band than typically developing children had. However, the difference between typically developing children and children with autism spectrum disorder who had interictal epileptiform discharges was not significant. Furthermore, the higher average clustering coefficient in the theta band corresponded to severe autistic symptoms in children with autism spectrum disorder who had interictal epileptiform discharges. However, the association was not significant in children with autism spectrum disorders who had no interictal epileptiform discharge. In conclusion, results demonstrate that alteration of functional brain networks in children with autism spectrum disorders depends on the existence of interictal epileptiform discharges. Interictal epileptiform discharges might ‘normalize’ the deviation of altered brain networks in autism spectrum disorders, increasing the clustering coefficient. However, when the effect exceeds tolerance, it actually exacerbates autistic symptoms.