The foundations of citizenship