Start by getting the Crop tool (C), and then up in the Options Bar, you’ll see the Straighten tool (it says “Straighten" right next to it). Now, just click-and-drag this tool along an edge you want to be straight (for example, in a landscape photo, you’d drag it along the horizon line), and it straightens your photo.
18.222.117.15