Disclosed are guanidine and biguanidine derivatives which have anti-viral and antibacterial activity. Also disclosed are pharmaceutical compositions containing such compounds as an active ingredient, and anti-viral and anti-bacterial methods utilizing such compounds. Methods of treating infections using the guanidine and biguanidine derivatives are also disclosed.