To rotate a background image in CSS, use the `background-image` property combined with `transform`. First, set your background image using `background-image: url('your-image.jpg');`. Then, wrap the element in a container, apply `transform: rotate(45deg);` to it, and adjust overflow and positioning as needed for best visual effect.