The two main types are ectoparasitism, where the parasite lives on the external surface of the host, and endoparasitism, where the parasite lives inside the host's body.