Melittin acts by disrupting cell membranes due to its amphipathic nature. It forms pores in the phospholipid bilayer, resulting in increased permeability and ultimately cell lysis. This mechanism is the basis for its toxic effects, which include local pain, swelling, and cell death. Melittin also activates various signaling pathways that contribute to its pro-inflammatory effects.