Plays a key role in the replacement of histones to protamine in the elongating spermatids of mammals. In condensing spermatids, loaded onto the nucleosomes, where it promotes the recruitment and processing of protamines, which are responsible for histone eviction. . This is the function of Ensembl gene identifier ENSG00000178279 (TNP2, transition protein 2).