Background: Metabolic syndrome (MetS) is a metabolic disorderknown for abdominal obesity, hyperglycemia, dyslipidemia, and hypertension and is a condition that is commonly induced in lab animals by high-fat diet (HFD). Hypogonadism, or low total testosterone, has been linked to an increase in the risk of MetS. change. Aim: The purpose of this study was to examine the impact of ketogenic diet (KD) in induced MetS caused by a HFD on the hypothalamic-pituitary-gonadal (HPG) axis and testosterone secretion from Leydig cells in male rats. Materials& methods: For 24 weeks, 40 male rats were divided into four groups: those fed a conventional chow diet (the control group), those provided with KD (KD group), group provided with HFD for 8 weeks (the Mets induced group), and MetS+KD treated group received the diet for 16 weeks. Results: The Mets induced group had lower serum levels of testosterone, FSH, and LH. KD group and MetS+KD treated group restored the levels of HPG. They also both had decreases in body mass index (BMI), while the Mets induced group saw significant increases. Conclusion: Our findings suggest that the KD diet is beneficial for metabolic processes and helps with weight gain and dyslipidemia associated with MetS, also helps in restoring a normal regulation of (HPG) and testosterone secretion.