A lens hood provides multiple functions: it shades the lens from stray light, improving your contrast and image quality; in inclement weather and it protects the front barrel from the inevitable impacts against walls, door frames, and other real-life obstacles. Almost all EF and TS-E lenses have a Canon lens hood engineered specifically for it.