There are series of species where species A can interbreed with species B, and species B with species C, but not species A with species C. They're called ring species.