The main aim of this study is to evaluate the effect of internal marketing on customer satisfaction by considering the mediating variable of quality of electronic service in Mellat Bank branches of Gorgan. The method of the present research is applied in terms of aim and descriptive-correlational in terms of nature and is a survey (field) in terms of data collection. The statistical population in this study included the employees of Mellat Bank branches of Gorgan. According to the field studies and interviews with employees and heads of Mellat Bank branches of Gorgan, the number of employees of this bank branches is 246. Therefore, to determine the sample size, the Cochran's formula was used, and accordingly, the sample size was determined to be 150 employees. The random sampling was used in this study. The data collection tool was a standard questionnaire and SPSS and Smart-Pls software was used to analyze the data. The results showed the significant effect of internal marketing on customer satisfaction and the significant effect of internal marketing on the quality of electronic services.