The pre-mRNA has sequences called introns which do not code for polypeptides and must be removed.
The coding sequences (called exons) are spliced together produce the mature mRNA, which exits the nucleus.