In the field of epidemiology, MAFFT is primarily used to analyze the genetic sequences of pathogens. By aligning sequences from various strains of a pathogen, researchers can track mutations, understand the evolution of the pathogen, and study its transmission patterns. This information is crucial for developing effective interventions and understanding the dynamics of disease outbreaks.