In conclusion, our study identified the PTPN2 rs2542151 G/T+G/G genotype as an independent predictor of significant fibrosis among Egyptian patients with MASLD. Here, PTPN2 is linked to metabolic dysfunction-associated steatotic liver disease.