What caused the huge valley between the Cascade Range and the Coast Range?

The motion of the tectonic plates causes that feature. As the colliding plates formed the Coast Range mountains and the descending oceanic plate gave rise to the Cascade Range volcanoes, a valley formed between the two ranges.