Objective: Behavioral teacher training is the most effective classroom-based intervention for children with attention-deficit/hyperactivity disorder (ADHD). However, it is currently unknown which components of this intervention add to its effectiveness and for whom these are effective. Method: In this microtrial, teachers of 90 children with impairing levels of ADHD symptoms (6-12 years) were randomly assigned to one of three conditions: a short (2 sessions), individualized intervention consisting of either (A) antecedent-based techniques (stimulus control), (B) consequent-based techniques (contingency management) or (C) waitlist. Primary outcome was the average of five daily assessments of four individualized problem behaviors, assessed pre and post intervention and three months later. Moderation analyses were conducted to generate hypotheses on child, teacher and classroom factors that may contribute to technique effectiveness. Results: Multilevel analyses showed that both antecedent-and consequent-based techniques were equally and highly effective in reducing problem behaviors compared to the control condition (Cohen's d =.9); effects remained stable up to three months later. Child's age and class size were moderators of technique effectiveness. For younger children, consequent-based techniques were more effective than antecedent-based techniques, whereas for older children the effect was in the opposite direction. Further, beneficial effects of antecedent-based techniques increased when the number of students per class decreased, whilst effectiveness of consequent-based techniques did not depend on class size. Conclusions: This study shows that both antecedent-and consequent-based techniques are highly effective in reducing problem behavior of children with ADHD. Interventions may be adapted to the child's age and class size.