What you'll need
Open Lightroom CC on your desktop and select or import a photo whose vertical and/or horizontal lines aren't straight, like a tall building shot from street level or a crooked horizon. You can use the sample file or a photo of your own. See Import photos into Lightroom CC to learn more about importing.
Tip: When you're shooting, you're not always in a position to get perspective just right. Shooting up at a tall building can make the building look like it's leaning away from you. A slight tilt of your camera can cause prominent lines in a photo to appear crooked. Guided Upright gives you extra control over perspective problems like these.
Select the photo you just imported, and click Develop at the top of the screen to open the photo in the Develop module.
Tip: Before you apply Guided Upright, go to the Lens Correction panel and check Enable Profile Corrections. If Lightroom detects that the photo was shot with a supported lens, it will automatically correct for lens distortion, which often will give you a better result when you apply Guided Upright.
Scroll down to the Transform panel, and click to exand the panel. Then click the Guided button to activate Guided Upright.
Hint: The other Upright buttons–Auto, Level, Vertical, and Full–are useful for automatic perspective correction. Guided Upright goes further, giving you the control you sometimes need to get exactly the result you want. To learn more about the other Upright controls, see the tutorial Alter a photo's perspective.
Locate a vertical or horizontal line in the scene that should be straight. Click, hold, and drag partway along that line; then release your mouse to add an Upright Guide.
Repeat along another vertical or horizontal line in the photo to add another upright guide. The lines in the image immediately adjust to the guides you applied, shifting the perspective of the photo.
You can add between up to four upright guides to control perspective.
Click Done in the Toolbar at the bottom of the screen to complete your perspective correction. If you like the result, you're finished.
Optional: Use the Transform sliders in the Transform panel to fine-tune perspective after applying Guided Upright. For example, try dragging the Aspect slider slightly to the left to widen perspective on the photo.