I always assume it is carpenter ants that produce this, but I guess it could also be termites.
All photos copyrighted; do not use or download without permission.