Urban agriculture, represented mainly by family and community gardens in urban contexts such as Bogota, generates a large number of benefits for people, such as self-sufficiency, food security, incomes, green spaces and health. In this sense, it is interesting to know the richness and composition of plant species, the ways in which plants are used and the relationship with agro-ecological and socioeconomic aspects. In this project, ten family gardens and ten community gardens were visited in five locations in Bogota. The data obtained were tabulated and categorized to perform a descriptive analysis; additionally, a correlation analysis was made between the variables. 80% of the orchards presented a greater number of food plants than medicinal plants, and 80% of the registered plants are introduced. The most common botanical family was Lamiaceae and the most frequent growth habit was herbaceous. The community gardens presented a greater wealth of species respect to the family gardens, in addition, a series of social-type purposes were identified; as for the family gardens, the fundamental purpose was self-consumption and social cohesion. No correlations were found between species richness and socioeconomic variables due to heterogeneity in the urban context.