Since the discovery of the Higgs boson in 2012, the experimental program at the LHC has started to explore previously unreachable kinematical regimes, where potentially new heavy particles can be produced. The ATLAS and CMS ex- periments can search for new physics in a wide range of final states with the highest sensitivity to date. Among all the possible signatures, final states in- volving photons, despite the relatively small cross section compared to hadronic signatures, provide a powerful handle in the signal over background discrimi- nation. Such searches find their motivation in a wide panorama of theoretical models such as minimal extensions of the standard model, extradimensions and dark matter. Over the past few years a set of photon reconstruction and iden- tification techniques have been developed and optimized in order to reach the detectors design performance. In this talk the most recent and promising results on searches for new physics with photons in the final state obtained with the CMS experiment at the LHC are presented. One of the most exciting results of LHC Run 2, concerning searches for high mass diphoton resonances, is largely discussed. Complementary analyses involving photons are also shown, such as searches for long-lived particles decaying to photons exploiting a novel technique for delayed photon identification and searches for dark matter produced in asso- ciation with photons. Possible extensions to these analyses and long term plans in preparation for the high-luminosity phase of the LHC are finally described.