mRNA synthesis occurs through a process known as transcription. During transcription, an enzyme called RNA polymerase reads the DNA template and synthesizes a complementary RNA strand. This pre-mRNA undergoes several modifications, including 5' capping, polyadenylation, and splicing, to become mature mRNA, which is then transported out of the nucleus.