Milk and beer can help to relieve the spiciness of chili peppers because they both contain proteins that can bind to capsaicin. This prevents the capsaicin from binding to the taste buds, which reduces the sensation of spiciness. Milk is a particularly effective remedy for spicy food because the fat in milk can also help to dissolve capsaicin. Beer can also be effective, but it is not as good at dissolving capsaicin as milk.
Some other foods that can help to relieve the spiciness of chili peppers include rice, bread, and yogurt. These foods can all help to absorb capsaicin and reduce the sensation of spiciness.