When can untreated timbers be used in foundations used to support permanent structures?

When can untreated timbers be used in foundations used to support permanent structures?