AMPs generally function by disrupting the cell membrane of pathogens. They can insert themselves into the microbial membrane, causing pore formation, which leads to leakage of cellular contents and ultimately cell death. Some AMPs also have the ability to modulate the immune system, enhancing the host's ability to combat infections.