A 404 error occurs when a web page is not found. During an SEO migration, if old URLs are not redirected correctly, users and search engines may encounter 404 errors, leading to a negative impact on user experience and search rankings.