Resistance often arises due to genetic mutations within the pathogen. These mutations can occur spontaneously or be induced by environmental pressures, such as the misuse or overuse of antimicrobials. Another cause is the horizontal gene transfer, where resistant genes are transferred between organisms through mechanisms like conjugation, transformation, or transduction.