Immune responses provoked by human immunodeficiency virus (HIV) infection ultimately are insufficient to control the disease and do not include strong lymphocyte-proliferative responses to HIV antigens or antibodies to many viral epitopes. A randomized double-blind, placebo-controlled trial evaluated the immunogenicity of recombinant HIV envelope vaccine (rgp160) in HIV-infected subjects with > or = 400/mm3 CD4 T cells. Controls received hepatitis B vaccine. Of subjects receiving rgp160, 98% developed lymphocyte-proliferative responses to the immunogen, 33% to a different envelope protein, and 56% and 60% to p24 and p66, respectively. All doses of vaccine (20, 80, 320, 1280 microgram) induced new responses. New antibodies to epitopes on rgp160 developed only in recipients of higher doses of rgp160. CD4 T cell percentages declined less rapidly in recipients of rgp160 than in controls. Vaccination of HIV-infected subjects with rgp160 results in cellular and humoral immune responses to HIV that infection itself had not stimulated.