The high-pressure effect on valence fluctuation of the ThCr2Si2-type intermetallic compound EuNi2P2 has been investigated using in situ synchrotron Mössbauer spectroscopy (SMS). The isomer shift of 151Eu in EuNi2P2 increases monotonically with increasing pressure up to 50 GPa, suggesting a valence transition of the Eu from mixed toward trivalent. The synchrotron angle-dispersive X-ray diffraction (AD-XRD) experiment shows that EuNi2P2 remains in the tetragonal structure up to 32.5 GPa at room temperature. We propose that the evolutions of bonding distance with pressure have an obvious effect on the valence fluctuation.