A photoresist is a light-sensitive polymer. When exposed to ultraviolet light, it turns to a soluble material. Those exposed areas can then be dissolved by using a solvent, leaving behind a pattern.