The foreground, middle ground, and background elements of your photograph each have a unique role to play within the grander scheme of composition. Ultimately though, they all serve the same purpose, just in different ways. That is to divide your image into distinct layers, each filled with interesting, attention-grabbing objects.