What is this sealant

I did an inspection today and found a foaming, squishy kind of sealant. I have seen this before but ONLY in this smaller more rural city. I have never ever seen it in any other city or location. I can tell its old but its still semi solid and yet still plyable. What they heck is this stuff?