Molecular mimicry typically occurs when pathogens such as bacteria, viruses, or other microorganisms produce antigens resembling the host's own proteins. This resemblance can trigger an immune response that not only targets the pathogen but also inadvertently attacks host tissues. The cross-reactivity between pathogenic and host antigens is central to the development of autoimmune conditions.