The idea behind the 331 model is to extend the standard model such that all three families are required for anomaly cancellation. More specifically, in this model the three families transform differently under an extended gauge group. The perfect cancellation of the anomalies within each family is ruined, but the anomalies of the extended gauge group cancel when all three families are present. The cancellation will persist for 6, 9,... families, so having only the three families observed in nature is the least possible matter content.