In landscape painting, the composition is often divided into three essential parts: foreground, middleground, and background. The foreground captivates the viewer with detailed elements, such as plants or rocks, while the middleground provides depth with rolling hills or water bodies. The background sets the scene with distant mountains or sky, creating a harmonious three-dimensional view.