A method of treating a bacterial infection of a subject includes topically administering a topical composition that includes nitrofurantoin combined with a carrier. The topical composition may be administered by contacting a tissue surface of the subject to be treated with the topical composition such as skin or mucosal tissue.