White pepper is made by cooking and drying the ripe seeds. People take white pepper by mouth for upset stomach, malaria, a bacterial infection that causes diarrhea (cholera), and cancer. People apply white pepper to the skin to reduce pain. White pepper is added to foods and drinks to add flavor.