I think what you meant to ask is what turns photons into matter and vice versa. Both photons and matter have energy.
If that is the case, photons can turn into matter and antimatter in a process called pair production. And matter and antimatter can become photons in a process called annihilation. There is a certain probability of the former happening if a high enough energy photon hits matter. And a certain probability of the latter happening whenever a matter and antimatter particle are close to each other. The probabilities are given as cross sections--the larger the cross section, the more likely they are to react (or interact). The probabilities depend on which particles are interacting, and can involve lengthy calculations to compute.
It's almost certainly possible to collide two photons to produce an electron and positron, but rather difficult to demonstrate in a lab due to the low probability and high energy gamma rays needed.