BackgroundThe increasing prevalence and occurrence of type 2 diabetes has made it a widespread epidemic. Being the first line of care, family doctors can play an essential role in this field. The knowledge of these doctors about how to deal with the prevention, diagnosis, and correct treatment of patients is fundamental in reducing the burden of this disease in the community. In this study, we decided to evaluate the knowledge and practice of family doctors in Shiraz-Iran and its related factors in managing Diabetes.MethodThis analytical cross-sectional study was conducted among family doctors of two primary healthcare centers, Shahadai Wal-Fajr Health Center and the Enghlab Health Center in Shiraz, Iran, from March 2021 to August 2021. A researcher-designed diabetes questionnaire consisting of 21 items and a data collection form including demographic information and other related factors was used in this study. An interviewer asked the questions from participants at their workplace and completed the questionnaires. The data were analyzed by SPSS-20 software. A linear regression test was used to investigate the factors affecting the questionnaire score. A one-way ANOVA test was used to compare questionnaire scores among multiple groups.ResultsOn average, the participants obtained 62.5% of the total score. The average scores for each question in the screening, the diagnosis, and the treatment sections were 0.5 ± 0.28, 0.65 ± 0.2, and 0.66 ± 0.17, respectively. Physicians’ knowledge about the blood sugar threshold for diagnosing Diabetes was suboptimal, and 81.9, 47, 43 correctly mentioned the FBS, 2hrpp BS, and HbA1c threshold, respectively. Although 95% knew the first line medication but 33.6% prescribed 2nd or 3rd medication for DM treatment. Only 43% knew the goal of therapy. Sixty-three doctors (42%) have not registered any referrals for newly diagnosed uncomplicated diabetic patients, and 37.6% referred these new DM cases to an internist or endocrinologist at the first visit. Microvascular complication screening, such as testing for microalbuminuria and ophthalmologist consultation reported by 32. 89% and 8% of physicians, respectively. Years since graduation was the determining factor of the knowledge level of doctors in this study. Regarding the preferred education method, most participants selected the workshop method as the preferred training method. Virtual education was ranked as the second preferred educational method.ConclusionThe knowledge and practice of general family doctors were lower than the optimal level in diabetes screening, diagnosis, and treatment. In the treatment of patients, the knowledge of most of the physicians was appropriate in the early stages of treatment, such as determining the time to start the medication and the first line of treatment, but in the follow-up and more advanced treatment, the knowledge and performance of the doctors were less than expected. They prefer to refer patients to higher levels in the healthcare system. Recently graduated physicians had better knowledge and approach to DM management. Therefore, effective periodic training should be conducted as soon as possible to address this pitfall and improve the quality of care. Workshops and virtual education were the most preferred education methods from the participants’ points of view. So, it is suggested that these methods be used as the first training methods. Implementing the specialty training program for family medicine (which has been started in our country for a few years) is the best final solution. In addition, A clinical guideline should be designed for family physicians highlighting these physicians’ roles in the management of Diabetes.