Spermiogenesis occurs within the seminiferous tubules of the testes. Specifically, it takes place in the adluminal compartment, which is separated from the basal compartment by the blood-testis barrier formed by tight junctions between Sertoli cells.