The primary transcripts of some genes can be spliced in many ways, generating different mRNA molecules.
In this example one mRNA molecule ends up with the green exon and the other with the purple exon.
With alternative splicing, an organism can produce more than one type of polypeptide from a single gene.