A global study of democratic backsliding and resilience offers ways to resist authoritarian attacks.