Here, I demonstrate that sex determination and sexual dimorphism across tree of life are deeply related to polyamine biochemistry in cells, especially to the synteny of genes: [SAT1-NR0B1], [SAT2-SHBG] and DMRT1. This synteny was found to be most distinct in mammals. Further, the common protein domain of SAT1 and SAT2 - PF00583 was shown to be present in the genome of the last universal common ancestor (LUCA). Protein domain-domain interaction analysis of LUCA’s genes suggests the possibility that LUCA had developed an immune defence against viruses. This domain-domain interaction analysis is the first scientific evidence indicating that viruses existed at least 3.5 billions years ago and probably co-existed with LUCA on early Hadean Earth.