To optimize video for a website background, focus on file size, format, and quality. Compress videos using tools like HandBrake, aim for MP4 format for compatibility, and make sure the resolution is suitable (1080p or lower). Consider autoplay with muted sound for better user experience and ensure it doesn’t hinder site speed.