The triboelectric effect is the buildup of static electricity that occurs when two different materials are brought into contact and then separated. This process creates an imbalance of electric charge, with one material becoming positively charged and the other negatively charged.