In recent years, the class of metal-organic framework (MOF) materials emerged. These materials' unique properties can be assigned to their structure, containing inorganic nodes connected with organic linkers. Due to their porosity and flexibility, MOFs have become suitable for various energy-related applications, including gas storage, hydrogen production and heterogeneous catalysis, and photocatalysis. Using DFT+U calculations, we show that the substitution of metal centers in inorganic nodes and the strain engineering of UiO-66 alters the electronic and optical properties of this material. We show that applying mechanical strain on UiO-66 enables the control of absorption coefficient in the UV-Vis spectrum and the photocatalytic processes' selectivity when reactants for several photocatalytic processes are present. The presented findings could lead to general strategies for designing novel MOFs for sustainable energy conversion applications.