To set a background image in HTML, use the CSS `background-image` property. You can specify the image URL and customize its size with `background-size`. For example: `body { background-image: url('image.jpg'); background-size: cover; }`. This method helps create visually appealing web pages. Remember to optimize images for performance!