Interesting content gets updoot. Spam, misinformation, and conservative politics get the downdoot.
For comments:
Relevant to the discussion (be it top-level or deep in a thread), funny, and factual statements get updoots. Irrelevant comments, false information, poor argumentative skills, and conservative political get the downdoot.