The Physics Education Group at the University of Washington has been investigating student understanding of geometrical and physical optics. The results of this research have guided the design of two curricula. Examples will be given of serious student difficulties and how they are addressed through these research-based curricula.