Identifying the social and biological mechanisms of cognitive and psychological development of children is essential for optimizing preventive and educational efforts. However, the causal pathways by which genetic and environmental factors affect cognitive and psychiatric outcomes remain unknown, especially in early childhood. We examined the causal relationships among genes, the environment, intelligence, and psychotic-like experiences in 7,632 multiethnic (5,905 with European ancestry) children aged 9-10 years old from the Adolescent Brain Cognitive Development (ABCD) Study. Using up-to-date computational causal analysis and rigorous path modeling, we found a significant causal influence of residential, family, and school environments and genome-wide polygenic scores of cognitive capacities on preadolescents' psychotic-like experiences mediated by intelligence. Mitigation of good parenting behavior and positive school environments on psychotic-like experiences dominated the pernicious effects of genetic and residential adversities. Our findings support that intelligence may be a biological resilience factor for psychosis. To the best of our knowledge, this is the first study to identify casual trajectories of neurocognitive development in early childhood and the first to provide empirical evidence that positive parenting behavior and school environment can impose a considerable degree of causal impact on children's cognitive and psychiatric outcomes. We suggest the implementation of socioeconomic policies to improve family and school environments and promote local economic development to enhance children's cognitive ability and mental health.