Gel electrophoresis is a method used to analyze PCR products by separating DNA fragments based on their size.