How does website maintenance affect SEO?

Website maintenance directly affects SEO in several ways — site speed (affected by database optimisation, image compression, and plugin management), security (a hacked or flagged site can be removed from search results), broken links (which waste crawl budget and damage user experience), and technical health (clean code and correct structured data) are all ranking factors influenced by regular maintenance.