Magic is being associated with evil. The evil archmages corrupt leaders into starting inquisistions within their kingdoms, rooting out the final mages.