Introduction. Nonalcoholic fatty liver disease (NAFLD) is the most common chronic liver disease, accounting for about 25% and 33% of the world’s adult population and Iranians, respectively. There is currently no effective therapeutic agent available for the treatment of NAFLD. However, lifestyle modifications aimed at weight loss have been introduced as a cornerstone of NAFLD management. The aim of the present study was to evaluate the effect of educational intervention on lifestyle and anthropometric indices in patients with NAFLD. Methods. The randomized controlled clinical trial was performed on 87 overweight or obese patients with NAFLD, including intervention (
n
=
42
) and control (
n
=
45
) groups. The intervention received 8 training sessions based on theory of planned behavior (TPB), while the control groups received nutritional and physical activity recommendations from their internal specialist and nutritionist. Analyses were carried out based on data collected from TPB constructs and anthropometric indices (weight, body mass index (BMI), waist size, and waist-hip ratio (WHR)) at three stages (before intervention and two and 12 weeks after the intervention), as well as data obtained from liver enzymes (alanine aminotransferase (ALT) and aspartate aminotransferase (AST)), and ultrasound-based grading of NAFLD at two stages (before and 12 weeks after the intervention). Results. After the intervention, a significant difference was found between the intervention and control groups, resulting in the increased mean scores of TPB constructs, decreased liver enzymes, and decreased degree of NAFLD ultrasound. In addition, the intervention group experienced more activity and healthy diet as compared with the control group. Anthropometric indices showed only a significant decrease in BMI in the intervention group (
p
<
0.05
). Conclusions. TPB-based training, as compared with traditional training, is a more effective and cost-effective strategy for altering nutritional behavior and physical activity of patients with NAFLD.