Optimize for Search Engines or Users?

– Which is more important: search engine optimization (SEO) or end user optimization?
– What spam detection tools would you recommend?
– Does cleanliness of code (W3C) help at all?

Matt Cutts
Answerer: Matt Cutts