For submarine-launched missiles (called UGM-109s), after being ejected by gas pressure (vertically via the VLS) or by water impulse (horizontally via the torpedo tube), the missile exits the water and a solid-fuel booster is ignited for the first few seconds of airborne flight until transition to cruise.