The present study explored the influence of teachers’ work-to-family enrichment on job satisfaction from primary school to high school. Seven hundred and sixty primary and secondary school teachers were investigated from the perspective of a longitudinal study. Demographic variables and work-to-family enrichment were measured at time point 1, and professional identity and job satisfaction were measured at time point 2. The results were as followed: 1) Work-to-family enrichment positively predicted job satisfaction. 2) Professional identity partially mediated the relationship between work-to-family enrichment and job satisfaction. 3)Gender played a moderating role in the first half of the mediation process. Specifically, work-to-family enrichment had a significantly higher predictive power of professional identity for male teachers than for female teachers. In conclusion, work-tofamily enrichment of primary and secondary school teachers affect their job satisfaction, with professional identity as a mediating factor. Moreover, there is a gender difference in this mediation model.