Lyonization, also known as X-inactivation, is the process by which one of the two X chromosomes in females is randomly silenced to ensure dosage compensation between males and females. This mechanism prevents females from having a double dose of X-linked gene products compared to males, who have only one X chromosome.