In visual arts, including photography, the line is one of the most fundamental elements of composition. Lines direct the viewer's eye, create interest, and convey mood.

But not all lines behave the same: some stop the eye, some calm the frame, some inject energy, and some quietly point at your subject. After years of teaching composition, I can tell you that once you start seeing lines, your photography changes.
Prefer to watch? I explain everything below in this video, with all the example photographs on screen.
THE VERTICAL LINE

Let's start with the vertical line. They say that the vertical line implies stability and growth, and when there are many of them, they give rhythm to the image. But I'm starting with it because it is the most dominant one.
When we have a vertical line in our frame, it is hard to ignore. It is like a visual brake. As our eyes travel through a photograph with a vertical line, that line will always stop the flow. So be very careful with it. A vertical line in the wrong spot can reduce the impact of the story.

If we place it too early on the left part of the frame, we might waste space, because such a line usually implies a beginning. If we put it too close to the right side, we might end the visual flow too quietly. The vertical line needs to be in just the right spot.
Apart from setting beginnings and endings, the vertical line is also used to split the frame: one part of the story on one side, the other part on the other. And it doesn't have to be dead in the middle. We can use the thirds with great success as well.
THE HORIZONTAL LINE

The horizontal line is calm. It has no motion in it, and that has an impact on our photographs.
One thing to be careful with is where horizontal lines pass through. Apart from being calm, they run the visual flow from side to side and cut through the frame. You don't want your subject to be cut by the line, so always consider its placement with this cutting effect in mind.
THE DIAGONAL LINE
The diagonal line is also a straight line, but it has some secret powers. It makes the image more dynamic, and often introduces energy and motion to a scene.
Let me give you an example. I photographed two images in the same area, perhaps 10-15 minutes apart.
The first one is with horizontal lines. You can almost feel the stagnation: people standing, nothing moving.

For the second one, I used an angle that made these lines diagonal, and you can see how differently the image feels. Now there is a feeling of movement.

But the reality is the same. The same very slowly moving line, just presented in a different way. That's how much power a single compositional choice with a line has.
Actually, I often suggest my students remove the horizontal level indicator on their camera. That line fixates you on creating very static compositions, and without it, you're more likely to explore dynamic ones. There is no reason to always have everything straight, horizontal, or vertical. Often, breaking out of structure creates more interesting images.
THE CURVED LINE
Until now we were speaking about straight lines. Now let's touch on curved ones.

Curved lines are all about visual comfort and harmony. They are pleasant to look at and simply make you feel comfortable.
As far as direction goes, curves work just like straight lines: a vertical one will split, a horizontal one will feel calm, a diagonal one will be dynamic. Landscape photographers love curved diagonals that lead you into the frame.
LEADING LINES: LINES AS POINTERS
Lines are also pointers. A line can point to a subject, and the eyes will follow. Photographers love to use leading lines to point at what is important in the frame.
Remember: if there is a line, the eye will follow.

We can't even recognize exactly what is happening in this photograph, but the eyes follow the lines and explore what's going on.
IMPLIED LINES
Sometimes lines are not solid. It doesn't have to be a tree or an electricity line. Sometimes a sequence of figures together creates a line: a row of trees, a lit part of the scene, a color occupying part of the frame in the shape of a line, a pattern of hands, anything that, if you take a step back, reads as a line.

Like these buffaloes, creating a curved line in the water.
HOW WE USE LINES?
First, we use lines to establish a beginning and an end in the frame.
You can see how I framed the girl between the vertical lines, which are the legs of her father. There is more space on the left and right, but the eye ignores it and goes straight to the area between the two verticals.

We use lines to split attention, dividing the composition and directing it to different parts. Subframing is usually a collection of lines that frames our subject; sometimes it makes it easier for the viewer to explore the scene part by part.
We use lines to define a feeling. Horizontal lines are calm, vertical lines are strict, diagonals are dynamic, curves are harmony.
Look at the fisherman photographs. In the first, all the lines are straight, giving a structured feeling. In the second, the net creates a curved line and softens that strictness.


A sequence of lines creates rhythm and repetition. And lastly, we use lines as pointers, directing attention through leading lines or sequences of lines.
WHAT ELSE CAN BE CONSIDERED A LINE?
Almost anything. A tree is made of lines. A house is made of lines. A car is made of lines. Even a human being is a collection of lines.

A standing human is a vertical line. Moving hands and legs create diagonals and horizontals. Hands can be used as pointers. That's why models in fashion photography break straight shoulder, hand, and leg lines into smaller diagonals.
Even the human face is a collection of lines: eyes as curved horizontals, the nose as a vertical, the mouth as a horizontal. Portrait photographers work with these all the time. You've probably heard someone comment on a jawline.
WHAT TO BE CAREFUL OF
Avoid unnecessary lines that cut the frame or your subject in an ugly way.
Be extremely careful where horizontal lines intersect with people. A horizon passing through the neck or joints can look like it's cutting the person.
Avoid starting or ending lines in the wrong place. Leading lines should lead toward your subject, not out of the frame. Watch for competing exit lines that pull attention away.
Be careful with a line's visual weight. If the line is more contrasty than the subject, it will swallow it.
Slightly tilted verticals can make the viewer uncomfortable. Sometimes that's exactly the effect you want. Just make it a decision, not an accident.
HOW I USE LINES IN MY OWN WORK
Here I use the lines on the left as leading lines, pushing attention into the depth of the frame, where the colorful area is. The vertical colorful lines add structure and rhythm.

Here I'm using lines to frame my subject. The beaded curtain creates curved lines that soften the otherwise harsh straight lines. Pay attention to that combination of straight and curved together. It's very special.

Here the line separates the subjects. It brings order to the image by putting each object in its place.

Here the lines separate the frame horizontally: sky on top, the shadows of the palm trees on the bottom. Clear visual separation.

And here I simply loved the geometry. I actually took this photo with my phone. The urban landscape often has plenty of geometry to play with. If you love architecture photography, you'll work with lines more than most photographers, because architecture is all about shape, line, and how it's all wrapped in light.

START SEEING LINES
The most important thing about lines it is to learn to see them
When you go outside and look around you try to notice the lines.
Than look through your viewfinder, start noticing these same lines while you are framing. With time and experience, you will start noticing them automatically and that will make your compositions cleaner and more intentional.
I hope this was useful.
If you have questions, welcome to ask in the comments.
Happy shooting!