Your attachment style is a reflection of how your needs (including emotional needs) were met at a young age and how you learned to cope with unmet needs.
The avoidant attachment style is all about, you guessed it, avoidance. Avoidance of intimacy, avoidance of reliance, avoidance of everything.
People typically develop this attachment style when their emotional needs were not met at a young age. They internalized the message that no one will be there for them emotionally and instead they have to be there for themselves.Read more on themighty.com