To rotate an object, select it and press R on your keyboard. Then, move your mouse to rotate the object to the desired position.