Schlafen (SLFN) is a family of proteins upregulated by type I interferons with a regulatory role in translation. Intriguingly, SLFN14 associates with the ribosome and can degrade rRNA, tRNA, and mRNA in vitro, but a role in translation is still unknown. Ribosomes are important regulatory hubs during translation elongation of mRNAs rich in rare codons. Therefore, we evaluated the potential role of SLFN14 in the expression of mRNAs enriched in rare codons, using HIV-1 genes as a model. We found that, in a variety of cell types, including primary immune cells, SLFN14 regulates the expression of HIV-1 and non-viral genes based on their codon adaptation index, a measurement of the synonymous codon usage bias; consequently, SLFN14 inhibits the replication of HIV-1. The potent inhibitory effect of SLFN14 on the expression of the rare codon-rich transcript HIV-1 Gag was minimized by codon optimization. Mechanistically, we found that the endoribonuclease activity of SLFN14 is required, and that ribosomal RNA degradation is involved. Therefore, we propose that SLFN14 impairs the expression of HIV-1 transcripts rich in rare codons, in a catalytic-dependent manner.