Leptin is a 16 kDa hormone encoded by obese (OB) gene in adipocytes. This molecule not only regulates energy metabolism but also plays a role in the reproduction of mammals. Leptin and its receptor (OBR) have been found in male reproductive systems of human, bovine, equine and pig. The effects of leptin on sperm quality vary widely from different research findings. However, the presence of leptin and its receptor in the ram reproductive system and the in vitro effect of leptin on sperm quality have not reported yet. In the present study, we found that the OB was highly expressed in primary and secondary spermatocytes of the testes, OBR was highly expressed in secondary spermatocytes of the testes. The expressions of OB were in stereocilia of epididymis and in columnar cells of epididymal caput and cauda, the expressions of OBR were in columnar cells of epididymis and in stereocilia of epididymal corpus and cauda. The presence of both OB and OBR in testes, epididymis and sperm were confirmed through RT-PCR, immunolocalization and Western blot analyses. The RT-qPCR results indicated OB and OBR had higher expression levels in epididymal sperm than that of the ejaculated sperm in rams. When sperm were treated with 5 ng/mL leptin, the progressive motility (P < 0.01), straight-line velocity (VSL) (P < 0.05), average path velocity (VAP) (P < 0.05), membrane mitochondrial potential (MMP) (P < 0.01) and viability (P < 0.05) significantly increased, while DNA fragmentation index (DFI) and reactive oxygen species (ROS) significantly decreased compared to the control (P < 0.01), and the other semen parameters such as acrosome integrity and acrosome reaction rate had no significant changes between groups (P > 0.05). In conclusion, this is probably the first report describing localization of leptin and its receptors in the reproductive system of rams and their effects on sperm quality parameters. Our findings suggest that 5 ng/mL leptin treatment enhanced sperm motility, viability and MMP, and decrease DFI and ROS without obvious influence on the acrosome reaction in ram sperm. The potential mechanisms may be related to leptin’s ability to reduce the oxidative stress and apoptosis of sperms and improve their mitochondrial function and energy supply, therefore, to maintain the physiological homeostasis of the sperm.