Naturally occurring phosphonates such as phosphinothricin (Glufosinate, a commercially used herbicide) and fosfomycin (Monurol, a clinically used antibiotic) have proved to be potent and useful biocides. Yet this class of natural products is still an under explored family of secondary metabolites. Discovery of the biosynthetic pathways responsible for the production of these compounds has been simplified by using gene based screening approaches, but detection and identification of the natural products the genes produce have been hampered by a lack of high-throughput methods for screening potential producers under various culture conditions. Here, we present an efficient mass-spectrometric method for the selective detection of natural products containing phosphonate and phosphinate functional groups. We have used this method to identify a new phosphonate metabolite, phosacetamycin, whose structure, biological activity, and biosynthetic gene cluster are reported.