The word "fence" may have very different meanings.
- A fence is a barrier which is often made of planks of wood.
- A person described as a fence may be selling illegal things.
- Fencing is a sport that includes two people with swords.
The context decides the meaning in cases like this.