An antiviral agent used in the treatment of cytomegalovirus retinitis. foscarnet also shows activity against human herpesviruses and hiv.