Antibiotic resistance develops through several mechanisms. Bacteria can acquire resistance genes through horizontal gene transfer, which involves the exchange of genetic material between microorganisms. They can also undergo spontaneous mutations that confer resistance. Overuse and misuse of antibiotics in humans and animals accelerate this process by applying selective pressure that favors the survival of resistant strains.