Light-absorbing secondary organic aerosols (SOAs), also known as secondary brown carbon (BrC), are major components of wildfire smoke that can have a significant impact on the climate system; however, how environmental factors such as relative humidity (RH) influence their formation is not fully understood, especially for heterocyclic precursors. We conducted chamber experiments to investigate secondary BrC formation from the nighttime oxidation of furan and pyrrole, two primary heterocyclic precursors in wildfires, in the presence of pre-existing particles at RH < 20% and ∼ 50%. Our findings revealed that increasing RH significantly affected the size distribution dynamics of both SOAs, with pyrrole SOA showing a stronger potential to generate ultrafine particles via intensive nucleation processes. Higher RH led to increased mass fractions of oxygenated compounds in both SOAs, suggesting enhanced gas-phase and/or multiphase oxidation under humid conditions. Moreover, higher RH reduced the mass absorption coefficients of both BrC, contrasting with those from homocyclic precursors, due to the formation of non-absorbing high-molecular-weight oxygenated compounds and the decreasing mass fractions of molecular chromophores. Overall, our findings demonstrate the unique RH dependence of secondary BrC formation from heterocyclic precursors, which may critically modulate the radiative effects of wildfire smoke on climate change.