A reinforced thermal barrier coat of a Na–tannic acid complex controls the high flammability of cotton.