PurposeThe study aims to evaluate the relationship among architectural identity, physical identity and neighborhood attachment in a residential neighborhood in the core of Sanandaj, Iran.Design/methodology/approachThis quantitative study conducted a survey of 208 residents in a historic neighborhood. The study hypothesized the mediating role of physical identity on the relationship between architectural identity and neighborhood attachment. Structural equation modeling using analysis of a moment structures (AMOS) software was used to test the research hypotheses.FindingsResearch findings show the reliability and validity of the proposed model. The results indicate a significant relationship between architectural and physical identity and a significant direct relationship between physical identity and neighborhood attachment. However, no significant direct relationship is found between architectural identity and neighborhood attachment, and only a significant indirect effect is found through physical identity. Therefore, architectural identity elements contribute to increasing physical identity and subsequently attach to the neighborhood.Originality/valueGiven the necessity for revitalizing the neighborhoods in the historical core of the cities to prevent the migration from old neighborhoods and the destruction of the valuable fabrics, establishing emotional relationships between residents and the place and improving interactions among residents is required. The mental values of residents change over time. Although the identification and use of identity elements in residential buildings is a significant way to revitalize the historic residential fabrics, only a few studies have experimentally assessed the impact of architectural identity elements in the creation of physical identity on the residents’ attachment to the historic neighborhood.