Places a tree terrain feature. Nice for shade during high noon anywhere near the equator. Makes it much easier to see inside the settlement during the high-noon intense daylight.
It's been hypothesized that AI cannot circumvent a wall of trees. Lining walls with trees may deflect some types of AI attacks.