Pairwise and multiple sequence alignment (MSA) are two primary categories of sequence alignment. Pairwise alignment involves comparing two sequences, with common algorithms being Needleman-Wunsch for global alignment and Smith-Waterman for local alignment. MSA aligns three or more sequences simultaneously, with progressive methods building alignments hierarchically and iterative methods refining initial alignments in iterations. Selection of alignment methods depends on the number of sequences, desired accuracy, and research goals.