The purpose of the paper is to identify the effect of geographical distribution of job accessibility on that of population density in the city of Salvador, comparing White and Black residents. The use of public and private transportation systems by workers was used to calculate an accessibility index by 713 traffic subzones of the city. The variation in this index was used to explain the variation in the population density in the urban area of the city. A two‐stage least‐square estimation procedure was applied, and a hydrological instrumental variable was used to capture exogenous variations in the accessibility index, since the historical evolution of the city’s avenues followed the path of its main rivers. The results showed that accessibility has similar effects for the total population, and for White and Black people. A lower possibility of reaching jobs reduces the demand for housing in more distant urban spaces, which reaffirms the importance of transport policies to reduce socioeconomic inequalities and to improve the urban sprawl in the cities.