Hydroxyurea is a medication primarily used to treat certain types of cancer, such as chronic myeloid leukemia and ovarian cancer, as well as sickle cell disease. It works by inhibiting the enzyme ribonucleotide reductase, which is essential for DNA synthesis. This mechanism makes it effective in slowing the growth of cancer cells and reducing the frequency of painful episodes in sickle cell disease.