This study examined the relationship of contextual factors to organizational commitment among 372 police officers in 13 police commands in New York City's public housing projects. Setting-level variables were formed by aggregating officers' perceptions of management support and fairness and management sensitivity to diversity within commands and within three subgroups formed by gender and ethnicity. Individual-level measures were deviations from these subgroup means within commands as well as perceptions of support from family and social support and negative interactions within commands. Overall, path analyses, confirmed by hierarchical linear modeling, showed direct setting-level effects for management support and fairness, but not for sensitivity to diversity, on organizational commitment. Both women and minority men experienced more negative social interactions than white men; support from management, co-workers, and family were important predictors of commitment. Family support was particularly important for women.