Proteins have four levels of structure: primary, secondary, tertiary, and quaternary. The primary structure is the amino acid sequence. Secondary structures include alpha helices and beta sheets formed by hydrogen bonding. Tertiary structure involves folding of the polypeptide into a compact 3D structure. Quaternary structure involves the assembly of multiple polypeptide subunits. Proteins play important roles in gene expression, with mRNA carrying the code from DNA to the ribosome for protein synthesis via translation of codons to amino acids. Regulation of transcription and translation allows cells to control and adapt protein production.