Pressure-treated fence posts can last a while underground. In optimal conditions, it can last up to 40 years but most commonly only lasts around 20 years.