Pests such as the coffee berry borer and coffee leaf rust can be controlled through the use of pesticides, but excessive use can harm the environment and reduce the quality of the coffee.