Complex sentence: The ancient Sama-Bajau were animistic, and this is retained in some Sama-Bajau groups.
Split into simpler sentences: The ancient Sama-Bajau were animistic. And this is retained in some Sama-Bajau groups.