Famciclovir (fam SYE kloe veer) is an antiviral medicine. It is used to treat or prevent infections caused by certain kinds of viruses. Examples of these infections are herpes and shingles. This medicine will not cure herpes. This medicine may be used for other purposes; ask your health care provider or pharmacist if you have questions.