Millais painted Ophelia outside over five months to accurately depict the natural setting, including wildflowers that bloom at different times of the year. The painting depicts a scene from Shakespeare's Hamlet where Ophelia drowns after losing her father and lover. The Pre-Raphaelite Brotherhood aimed for photorealistic detail by painting outdoors rather than working from sketches in the studio like most artists of the time. Nature and truth to nature were highly valued by Millais and other Pre-Raphaelites like John Ruskin emphasized in their artistic philosophy.