An anti-stain chemical is a fungicidal treatment used to protect green (unseasoned) timber from sapstain, bluestain, and mould growth, especially during the early stages after harvesting.