This article presents an investigation into the interaction between ultrashort electron beams and DNA molecules. With the advent of advanced electron beam technology, the potential applications in various fields, including medicine and genetic engineering, have garnered significant attention. However, the intricate mechanisms underlying the interaction between ultrashort electron beams and DNA molecules remain largely unexplored. This study aims to bridge this gap in knowledge by obtaining experimental data. We used Cu containing water-soluble cationic 4-N meso-tetra-oxyethyl-pyridyl porphyrin. The electron beam irradiated the samples with different relative concentrations of porphyrin per base pair. It was shown that the presence of porphyrin enhances DNA stability, making it more resistant to radiation-induced damage, with the effect varying based on porphyrin concentration and irradiation dose.