The untranslated leader region of the human immunodeficiency virus (HIV) RNA genome contains multiple hairpin motifs. The repeat region of the leader, which is reiterated at the 3 end of the RNA molecule, encodes the well-known TAR hairpin and a second hairpin structure with the polyadenylation signal AAUAAA in the single-stranded loop [the poly(A) hairpin]. The fact that this poly(A) stem-loop structure and its thermodynamic stability are well conserved among HIV and simian immunodeficiency virus isolates, despite considerable divergence in sequence, suggests a biological function for this RNA motif in viral replication. Consistent with this idea, we demonstrate that mutations that alter the stability of the stem region or delete the upper part of the hairpin do severely inhibit replication of HIV type 1. Whereas destabilizing mutations in either the leftor right-hand side of the base-paired stem interfere with virus replication, the double mutant, which allows the formation of new base pairs, replicates more rapidly than the two individual virus mutants. Upon prolonged culturing of viruses with an altered hairpin stability, revertant viruses were obtained with additional mutations that restore the thermodynamic stability of the poly(A) hairpin. Transient transfection experiments demonstrated that transcription of the proviral genomes, translation of the viral mRNAs, and reverse transcription of the genomic RNAs are not affected by mutation of the 5 poly(A) hairpin. We show that the genomic RNA content of the virions is reduced by destabilization of this poly(A) hairpin but not by stabilization or truncation of this structure. These results suggest that the formation of the poly(A) hairpin structure at the 5 end of the genomic RNA molecule is necessary for packaging of viral genomes into virions and/or stability of the virion RNA.