The aim of the present research was to study the impact of organizational culture on entrepreneurial orientation given the mediating role of knowledge management. The statistical population consisted of the employees of district 1 and 2 municipalities of Qazvin who were about 200 in number, of whom 130 people were selected based on stratified random sampling method and Cochran formula. Data analysis was done using structural equation modeling with the help of LISREL 8.8 software and Smart PLS 2 in two parts: measurement model and structural part. In the former, technical characteristics of questionnaire were evaluated and the necessary amendments were made; and in the second part, the coefficients of structural model were used to test the hypothesis of the research. The results indicate a significant and positive impact on the entrepreneurial orientation of organizational culture and knowledge management on the one hand and on the other hand a significant impact on the relationship between the two of the mediator of knowledge management.