Exploring the genetic basis of congenital cataracts in two families identifies a molecule, lanosterol, which prevents intracellular protein aggregation of various cataract-causing mutant crystallins, and which can reduce cataract severity and increase lens transparency in vivo in dogs.