One of the most important duties of the religious government is to implement the duty of enjoining good and forbidding evil in order to reform the society. Commentators of the Qur'an have mentioned the role of the government in this duty during the discussion of the verses related to the good. The purpose of this article is to investigate the role of the government in the implementation of the duty of enjoining the good and forbidding the evil from the point of view of the early and late commentators. This study has investigated the views of commentators with documentary and analytical methods. For this purpose, the viewpoints of Shiite and Sunni commentators, both early and late, in the verses related to the good, especially verses 104 of Aal Imran and 41 of Hajj, were examined and divided into several sections. The findings of this study show the difference of opinion between the early commentators and the late commentators in some aspects of the discussion. The earlier commentators have paid less attention to the role of the government in fulfilling this duty, but the recent commentators emphasize the necessity of the government's entry into this category and They have specified duties for the government in this field. The result is that the closer we get to the later periods, the more the need for the government to enter into the issue of the duty of enjoining good and forbidding evil, and this indicates that religious governments, in order to implement Islamic rules, are bound to structure issues related to this duty.