Described herein are methods and compositions for killing or preventing the growth of microbes. It has been discovered that a class of porphyrins can kill or prevent the growth of microbes. The porphyrins can be used in a number of different applications where microbes grow.