Most mysteries reveal a crime and then require their main characters to work backwards to figure out who committed that crime. In a thriller, the bad guy is often established early on, and the main characters must work to stop them from doing evil.