Core accretion theory is a model explaining the formation of giant planets, suggesting that they develop from solid cores that attract gas and dust in their surrounding protoplanetary disks. This process begins with the gradual accumulation of small particles into larger bodies, eventually leading to a massive core capable of attracting significant amounts of gas, forming a thick atmosphere around it.