Abstract. Understanding the composition and sources of atmospheric ultrafine particles (UFPs) is essential in evaluating their exposure risks. It requires long-term measurements with high time resolution, which are to date scarce. We performed near-continuous measurements of UFP composition during four seasons in urban Beijing using a thermal desorption chemical ionization mass spectrometer, accompanied by real-time size distribution measurements. We found that UFPs in urban Beijing are dominated by organic components, varying seasonally from 68 to 81 %. CHO organics are the most abundant in summer, while sulfur-containing organics, some nitrogen-containing organics, nitrate, and chloride are the most abundant in winter. With the increase of particle diameter, the contribution of CHO organics decreases, while that of sulfur-containing and nitrogen-containing organics, nitrate, and chloride increase. Source apportionment analysis of the UFP organics indicates contributions from cooking and vehicle sources, photooxidation sources enriched in CHO organics, and aqueous/heterogeneous sources enriched in nitrogen- and sulfur-containing organics. The increased contributions of cooking, vehicle, and photooxidation components are usually accompanied by simultaneous increases in UFP number concentrations related to cooking emission, vehicle emission, and new particle formation, respectively. While the increased contribution of the aqueous/heterogeneous composition is usually accompanied by the growth of UFP mode diameters. The highest UFP number concentrations in winter are due to the strongest new particle formation, the strongest local primary particle number emissions, and the slowest condensational growth of UFPs to larger sizes. This study provides a comprehensive understanding of urban UFP composition and sources and offers valuable datasets for the evaluation of UFP exposure risks.