ChatGPT can assist with optimizing a website for search engines (SEO) by generating content with relevant keywords and phrases, researching keywords, generating titles and meta descriptions, alternative tags for images, and meta tags.