Protamines substitute for histones in the chromatin of sperm during the haploid phase of spermatogenesis. They compact sperm DNA into a highly condensed, stable and inactive complex (By similarity). . This is the function of Ensembl gene identifier ENSG00000178257 (PRM3, protamine 3).