In perspective, two parallel lines converge toward one point on the frame as they recede — the vanishing point. Put the subject right there, and the eye enters from an edge of the photo and rides those lines straight to it.
The lines themselves can be almost anything — road lane markings, a bridge railing, a building's roofline, a river's curve, even a shadow. The most common setup starts the lines at the bottom corners and lets them converge upward.
Too many lines converging toward different points scatters the eye instead of guiding it. Keep the convergence to one vanishing point, and put something worth looking at — a person, a light, a contrasting color — right where the lines meet.
When to use
Use it in a hero image to funnel attention toward a CTA or product, or whenever a photo needs one unmistakable point of focus.