The three main types of hackers are black hat hackers, white hat hackers, and gray hat hackers. A white hat hacker is an ethical hacker, a black hat hacker is a criminal hacker, and a gray hat hacker is a combination of both.