Transcription is the first step of gene expression, where a particular segment of DNA is copied into RNA, especially messenger RNA (mRNA). This mRNA serves as a template for protein synthesis in the process known as translation. In eukaryotes, transcription occurs in the nucleus, while in prokaryotes, it takes place in the cytoplasm.