Yep, check with the bldg dept. In Mich for every 2 ft above ground you have to have 1 ft in ground. We have an 9ft Pergola with 6X6'S for supports & about 4 ft (+) in the ground. The city comes and measures the depth before you put the posts in too!! We packed it with small pea gravel for 3 feet or so and soil at the top so the pressure treated lumber has some below ground drainage around it. There are 2 swings on it and it isn't goin anywhere! Been up since 1996 and thru a few Mich wind storms, ice, snow etc. Just my experience with our Pergola.