Herpes simplex virus type-1 (HSV-1) and John Cunningham polyomavirus (JCPyV) are widely distributed DNA viruses causing mainly asymptomatic infection, but also mild to very severe diseases, especially when these viruses reach the brain. Some drugs have been developed to inhibit HSV-1 replication in host cells, but their prolonged use may induce resistance phenomena. In contrast, to date, there is no cure for JCPyV. The search for alternative drugs that can reduce viral infections without undermining the host cell is moving toward antimicrobial peptides (AMPs) of natural occurrence. These include amphibian AMPs belonging to the temporin family. Herein, we focus on temporin G (TG), showing that it strongly affects HSV-1 replication by acting either during the earliest stages of its life cycle or directly on the virion. Computational studies have revealed the ability of TG to interact with HSV-1 glycoprotein B. We also found that TG reduced JCPyV infection, probably affecting both the earliest phases of its life cycle and the viral particle, likely through an interaction with the viral capsid protein VP1. Overall, our results are promising for the development of short naturally occurring peptides as antiviral agents used to counteract diseases related to HSV-1 and JCPyV.