In many developing countries, the COVID-19 pandemic has spread much faster and wider than the number of detected cases implies. By combining data from 59,770 RT-PCR tests on mostly asymptomatic individuals with administrative data on all detected cases, we capture the spread and dynamics of the COVID-19 pandemic in BogotÃ¡ from June 2020 to early March 2021. Our data provide unusually broad and detailed information on mostly asymptomatic adults in BogotÃ¡, allowing to describe various features of the pandemic that appear to be specific to a developing country context. We find that, by the end of March 2021, slightly more than half of the population in BogotÃ¡ has been infected, despite only a small fraction of this population being detected. In July 2020, after four months of generalized quarantine that mitigated the pandemic without curving it, the initial buildup of immunity contributed to the end of the first wave. We also show that the share of the population infected by February 2021 varies widely by occupation, socio-economic stratum, and location. This, in turn, has affected the dynamics of the spread: while the first wave of infections was driven by the lowest economic strata and highly-exposed occupations, the second peak affected the population more evenly. A better understanding of the spread and dynamics of the pandemic across different groups provides valuable guidance for efficient targeting of health policy measures and restrictions.