Background and objectives: Ethnic cities are facing challenges such as the dominance of ethnic culture and tribalism, relying on ethnic customs and traditions instead of legalism. The purpose of this research is to identify, investigate and present the model of social security in Ramhormoz city.Method: In terms of its objectives this study is of an applied research type and in terms of its nature it is considered as a descriptive-analytical. The statistical population of the research in three levels: 1- Citizens using the Krejesi and Morgan Table, 324 people for the sample size by stratified random method, 2- Prisoners, 50 prisoners from the city of Ramhormoz (all prisoners regardless of the type of crime) and 3 - managers and city officials of Ramhormoz city, 40 people (all managers and officials) were selected by simple random method. The data was evaluated and verified through a researcher-made questionnaire, whose validity and reliability were evaluated using Cronbach's alpha (.88). To analyze the data, using spss26 software, exploratory factor analysis and regression (for the statistical population of citizens), t-test of variables, analysis of variance for the statistical population of prisoners and managers and city officials were used.Findings: The most important influential factors identified in the reduction of social security in Ramhormoz city are: ethnic culture (24%), social capital (4.7), legal security and citizenship rights (4.9), services and public security (3.5), conflict Ethnicity (3.4), economy and employment (4.5).Results: Taking advantage of existing capacities and reducing obstacles in social fields, especially strengthening social capital, specialization and reducing the influence and influence of certain ethnic groups, social participation, development and expansion of values and norms instead of custom, development of social justice in order to deal with the marginalization of some ethnic groups can improve social security in Ramhormoz city. The model presented in this study, emphasizing the constructionist point of view, has put forth the acceptance of cultural ethnocentrism and ethnic mobilization instead of melting ethnicities, avoiding the division of cultural work and strengthening social capital as the most important factors in increasing the social security of the city.