From Tumblr comes this very helpful guide on how to create an effective villain.
Writing villains is fun. It’s a great way to set up the conflict that your story will need, but a badly written antagonist with unexplainable motivations is often the downfall of a story.