What causes people to have an aniexity disorder?

I’ve had some sort of aniexity disorder since I was little around 6 or 7. Both my parents and lots of family memeber have some type of mental issues is this genetic or environmental?