Aside from being mostly aesthetic, this can serve as a sign of wealth to other players on a server because of its
Golden Wall

A display of the Golden Wall.

 expensive recipe. It can also serve as an extremely efficient dragon defense, but it's not the best so it's recommended to get Bloodstone or Diamond Walls. Due to the rarity of gold, it's rather best to find an alternative. Gold walls are made out of two gold bars.