Models of the origins of gas giant planets and 'ice' giant planets are discussed and related to formation theories of both smaller objects (terrestrial planets) and larger bodies (stars). The most detailed models of planetary formation are based upon observations of our own Solar System, of young stars and their environments, and of extrasolar planets. Stars form from the collapse, and sometimes fragmentation, of molecular cloud cores. Terrestrial planets are formed within disks around young stars via the accumulation of small dust grains into larger and larger bodies until the planetary orbits become well enough separated that the configuration is stable for the lifetime of the system. Uranus and Neptune almost certainly formed via a bottom-up (terrestrial planet-like) mechanism; such a mechanism is also the most likely origin scenario for Saturn and Jupiter.