Simulation is crucial for safety evaluation in autonomous driving, but generating realistic and controllable traffic scenarios is challenging.A new framework called Causal Compositional Diffusion Model (CCDiff) is introduced to address the challenges.CCDiff maximizes controllability while adhering to realism by injecting causal structures into the diffusion process.CCDiff outperforms state-of-the-art approaches in generating realistic and user-preferred trajectories.