The mucin family of transmembrane and secreted glycoproteins form a barrier that protects the epithelium. Mucins affect epithelial polarity, inflammation, and cell growth and survival signalling; all of these functions could have roles in tumour formation and progression. This Review highlights the functions of mucins in cancer and discusses how these proteins are being targeted therapeutically.