
Pressure-treated timber for fences
"Treated timber" is not one thing. Wood for a fence board above ground and wood for a post set in soil need different levels of protection. This guide explains the difference and what to ask.
What is pressure-treated timber?
In short: wood, usually softwood, impregnated with a preservative under pressure so that it resists decay and insects.
Many softwoods used for fencing are not naturally durable outdoors. Pressure treatment forces a preservative into the wood in a closed cylinder – in Spain often called *madera tratada en autoclave*. The depth and amount of preservative the wood takes up depend on the species and on the treatment specified.
Treatment protects against decay and insects. It does not protect against the sun: treated wood still greys, dries and checks unless it is coated. That is why our timber fencing page talks about both treatment and finish.
What are use classes?
In short: categories that describe how exposed a piece of wood will be, from indoors to permanent ground contact; treatment should match the class.
European practice classifies wood by its exposure in service, and Spain's Technical Building Code (CTE, document DB SE-M on timber structures) uses the same idea for structural timber. In summary, as set out in that document:
- Use class 3.1: outdoors, above ground and protected.
- Use class 3.2: outdoors, above ground and not protected, with frequent wetting.
- Use class 4: in contact with the ground or with fresh water.
- Use class 5: permanently in contact with salt water.
The CTE also states that timber with sufficient natural durability for its class may be used without a protective treatment. A garden fence is not usually a structural element under the building code, but the classes are the clearest way to ask a supplier for the right material.
Which class for which fence part?
Boards and rails that stand clear of the soil are typically in the above-ground classes; posts set into the soil are in ground contact. Asking for "treated timber" without stating the class is how above-ground wood ends up in a post hole.
Why are posts the critical part?
In short: posts sit where wood stays wettest – at ground level – so they need ground-contact protection or should be kept out of the soil.
Decay needs moisture, and the zone just below and above ground level stays damp longest. A post that is perfectly sound above ground can be soft at soil level. Two approaches avoid this: use posts treated for ground contact, or set metal post supports in concrete so the timber starts above ground.
On many Costa del Sol plots the better answer is a low wall with pillars, so the timber never touches soil at all – see composite fence on a low wall, which applies equally to timber boards.
What happens when treated timber is cut?
In short: cutting exposes wood the treatment may not have reached, so cut ends should be treated on site.
Preservative does not always penetrate to the core of a piece of timber. When a board or post is cut, drilled or notched on site, untreated wood can be exposed. Good practice is to brush an end-grain preservative compatible with the original treatment onto every cut. It is a small step that is easy to skip, which is one reason we list it in our build steps.
Fixings matter too. Some preservatives and coastal air are hard on ordinary steel, so we use exterior-grade fixings suited to treated timber, following the supplier's recommendations.
How do you protect treated timber from the sun?
In short: with a suitable stain or oil, renewed as the product instructions require.
Ultraviolet light breaks down the wood surface, and the strong sun of the Málaga coast makes this visible quickly on exposed faces. A pigmented stain or oil slows it down and keeps the colour. Ask the coating supplier how much UV protection a clear finish gives compared with a pigmented one (check per product). Follow the coating manufacturer's instructions for preparation and re-coating intervals.
If re-coating is unrealistic for you, consider composite instead; our composite and timber care page compares the effort involved.
What should you ask before buying or accepting timber?
In short: species, treatment and use class, finish, fixings and – if it matters to you – verifiable certification.
- Which species is it, and is it treated or naturally durable?
- Which use class is the treatment intended for?
- Are the posts suitable for ground contact, or will they stand on supports?
- Is there a factory finish, or will it be stained on site?
- Which fixings will be used?
- If the timber is sold as certified, what is the certificate code? Our guide on sustainability claims explains how to check it.
Official sources
Articles and guides

Timber fencing in Málaga
Real wood still has a place on the Costa del Sol – if it is the right timber, treated for its position and built so that water drains away. We build timber fences for owners who want that look and accept its upkeep.
View details →
Composite and timber fence care: building for low upkeep
Most fence maintenance is decided on the day the fence is built. This page explains what composite and timber really need in the Málaga climate, and the design choices we make so that you spend less time on upkeep.
View details →
Timber or composite fence: which suits your garden?
We build both, so we have no reason to push either. The right choice depends less on the material than on how you use the garden and how much time you spend here.
View details →
Sustainability claims on composite and timber fencing, explained
"Eco", "green", "made from recycled materials": fencing products carry plenty of environmental claims. Some are meaningful, some are vague. This guide shows how to tell the difference.
View details →Frequently asked questions
Is pressure-treated timber the same as autoclave timber?
In Spain, madera tratada en autoclave is the usual term for wood treated under pressure in a closed cylinder. Ask which treatment and use class it is for.
What is use class 4?
According to Spain's CTE DB SE-M, use class 4 covers wood in contact with the ground or with fresh water. Fence posts set in soil fall into this situation.
Can above-ground timber be used for posts?
Not in the soil. Posts in ground contact need timber treated for that exposure, or they should stand on metal supports above ground.
Does treated timber still need staining?
Yes, if you want to keep its colour and limit cracking. Treatment protects against decay, not against sunlight.
Why has my treated fence turned grey?
Sunlight breaks down the wood surface. Cleaning and re-coating with a pigmented stain restores colour and protection.
Do I need to treat cut ends?
Yes. Cutting can expose wood the preservative did not reach, so cut ends should receive an end-grain treatment.
Are some woods durable without treatment?
Yes, some species are naturally durable enough for certain exposures. The CTE allows such wood to be used without treatment where its durability suits the use class.
Is treated timber safe near pets and plants?
Ask the supplier for the treatment product's safety information, especially if you have dogs that chew or vegetable beds near the fence. We follow the supplier's handling instructions on site.
Which fixings suit treated timber?
Exterior-grade fixings recommended by the timber or treatment supplier. Coastal air makes corrosion resistance more important.
Do you build timber fences on walls?
Yes. Timber boards between pillars on a low wall stay out of the soil, which helps them last.
Planning a composite or timber fence?
Send photos and the approximate length by WhatsApp or the form. We reply with what to check and an itemised quote, no commitment.