Background and AimThe prevalence of metabolic dysfunction‐associated fatty liver disease (MAFLD) and its interplay with hepatitis B virus (HBV) and hepatitis C virus (HCV) in terms of liver disease severity is elusive.MethodsA mass surveillance program was conducted in a viral hepatitis endemic area. The objective was to identify MAFLD/non‐MAFLD subjects with advanced liver disease.ResultsTwo thousand two hundred and forty‐two (41.7%) of the 5378 subjects were identified as having MAFLD, and 375 (7.0%) had advanced liver disease. The proportions of anti‐HCV and HBsAg seropositivity were 19.3% and 9.7%, respectively. The proportions of advanced fibrosis in subjects with non‐viral hepatitis (NBNC), HBV and HCV infection were 2.8%, 5.7% and 23.4%, respectively. Subjects with MAFLD had a significantly higher proportion of advanced fibrosis (8.7% vs 5.7%, P < 0.001). Factors associated with advanced fibrosis included age (odds ratio [OR]/95% confidence interval [CI]: 4.8/3.7–6.0, P < 0.001), male sex (OR/CI: 1.3/1.0–1.7, P = 0.019), anti‐HCV seropositivity (OR/CI: 5.9/4.6–7.5, P = 0.019), MAFLD‐lean metabolic dysregulation (MS) (OR/CI: 2.6/1.3–5.2, P = 0.005; compared with the non‐MAFLD group) and MAFLD‐diabetes (OR/CI: 1.5/1.1–2.1, P = 0.008; compared with the non‐MAFLD group). MAFLD did not aggravate liver disease severity in patients with viral hepatitis. However, among NBNC subjects, factors associated with advanced liver disease included MAFLD‐lean MS group (OR/CI: 9.1/2.4–34.6, P = 0.001; compared with non‐MAFLD group) and MAFLD‐DM group (OR/CI: 2.0/1.2–3.2, P = 0.004; compared with non‐MAFLD group).ConclusionsMAFLD patients with diabetes and metabolic dysregulation had a higher risk of advanced liver disease. The effect was more significant in non‐viral hepatitis subjects in a community level.