N-Nitrosodimethylamine (NDMA) is a probable human carcinogen which forms during chloramination of wastewater-impacted drinking waters. Municipal wastewater effluents are considered as major sources of NDMA precursors affecting downstream water quality. To evaluate the deactivation mechanisms and efficiencies of NDMA precursors during secondary treatment with the activated sludge (AS) process, NDMA formation potentials (FPs) of selected model precursor compounds and sewage components (i.e., blackwaters and greywaters) were monitored in batch AS treatment tests. After 24-h incubation with four different types of AS (i.e., domestic rural, domestic urban, textile and lab-grown AS), NDMA FP of trimethylamine (TMA) and minocycline (MNCL) decreased by 77-100%, while there was only 29-46% reduction in NDMA FP of sumatriptan (SMTR). The reduction in NDMA FP associated with ranitidine (RNTD) varied between 34% and 87%. The decrease in NDMA FP of RNTD depended on the AS type, hydraulic retention time (HRT) and solids retention time (SRT). The domestic AS (rural and urban) achieved higher decreases in NDMA FPs of the tested model precursors than the textile AS or lab-grown AS. Increasing the HRT or SRT enhanced NDMA FP decrease for RNTD. Among different processes tested (i.e., biodegradation, biosorption and volatilization), biosorption was the major mechanism responsible for the NDMA FP decrease of RNTD, MNCL and SMTR, while biodegradation was the major NDMA FP reduction mechanism for TMA. The reduction in NDMA FP of RNTD via biodegradation depended on the AS activity which may vary with sampling seasons and SRT. NDMA FPs in all tested sewage components (i.e., blackwaters and greywaters) decreased after 24-h AS treatment. Urine in blackwater was the predominant (i.e., >90%) contributor to NDMA FP in domestic sewage and AS-treated effluents.