The increased spread and persistence of bacterial drug-resistant phenotypes remains a public health concern and has contributed significantly to the challenge of combating antibiotic resistance. Nanotechnology is considered an encouraging strategy in the fight against antibiotic-resistant bacterial infections; this new strategy should improve therapeutic efficacy and minimize side effects. Evidence has shown that various nanomaterials with antibacterial performance, such as metal-based nanoparticles (i.e., silver, gold, copper, and zinc oxide) have intrinsic antibacterial properties. These antibacterial agents, such as those made of metal oxides, carbon nanomaterials, and polymers, have been used not only to improve antibacterial efficacy but also to reduce bacterial drug resistance due to their interaction with bacteria and their photophysical properties. These nanostructures have been used as effective agents for photothermal therapy (PTT) and photodynamic therapy (PDT) to kill bacteria locally by heating or the controlled production of reactive oxygen species. Additionally, PTT or PDT therapies have also been combined with photoacoustic (PA) imaging to simultaneously improve treatment efficacy, safety, and accuracy. In this present review, we present, on the one hand, a summary of research highlighting the use of PTT-sensitive metallic nanomaterials for the treatment of bacterial and fungal infections, and, on the other hand, an overview of studies showing the PA-mediated theranostic functionality of metal-based nanomaterials.