The alternate expression of the Salmonella flagellin genes H1 and H2 is controlled by the orientation of a 995-base-pair invertible segment of DNA located at the 5' end of the H2 gene. The hin gene, which is encoded within the invertible region, is essential for the inversion of this DNA segment. We cloned the hin gene into Escherichia coli and placed it under the control of the PL promoter of bacteriophage lambda. These cells overproduced the Hin protein. In vivo inversion activity was measured by using a recombinant lambda phage which contains the H2 and lacZ genes under the control of the invertible region. Using this phage, we showed that the amount of inversion activity is proportional to the amount of Hin protein in the cell. An inactive form of the protein was purified by using the unusual solubility properties of the overproduced protein. The amino acid composition of the protein agreed with the DNA sequence of the hin gene. Antibodies were made to the isolated protein. These antibodies cross-reacted with two other unidentified E. coli proteins.