You can align a rectangle with a line or other existing object on the fly, avoiding the need for a separate rotation. Watch the video or read the steps.
Here are the steps:
Start the RECTANG command. At the Specify first corner point or [Chamfer/Elevation/Fillet/Thickness/Width]: prompt, specify the first point. Choose the Rotation option. […]