The gut microbiota can affect the symptoms of intellectual disability (ID) and autism spectrum disorder (ASD) diseases. Loss of function mutations in histone demethylases KDM5A, KDM5B, or KDM5C are found in patients with ID and ASD. However, the molecular mechanisms that regulate host-commensal microbiota homeostasis in normal and disease states remain largely unknown. Drosophila is a widely accepted model for studying behavior.