This study examined the impact that the attractiveness of working in nursing homes and autonomous clinical judgment have on affective occupational commitment, and whether work engagement mediates these relationships. This analysis was based on the job demands-resources theory. The study setting was 1200 nursing homes (including long-term care welfare facilities and long-term care health facilities) in eastern Japan. An anonymous, self-report questionnaire survey was administered to two nurses from each facility, resulting in a prospective sample of 2400 participants. Overall, 552 questionnaires were analyzed, in which structural equation modeling and mediation analysis using the bootstrap method were performed. The results showed that the attractiveness of working in nursing homes does not directly affect affective occupational commitment; work engagement fully mediates the impact of attractiveness of working in nursing homes on affective occupational commitment. Additionally, autonomous clinical judgment showed a direct impact on both work engagement and affective occupational commitment, indicating that work engagement partially mediates the impact on affective occupational commitment. To increase the affective occupational commitment of nurses working in nursing homes, managers should help nurses recognize the attractiveness of working in nursing homes, and then provide appropriate support to help such nurses work in a motivated manner.