Multiple regression analysis revealed that the longer the duration of DM and the endophthalmitis diagnosis was associated with TIMP2/MMP2 ratio. This evidence concerns the gene MMP2 and endophthalmitis.