Complex sentence: Being a devout Hindu, he opened a small side door (kavad) to the stronghold for the cattle, thereby allowing the cows to escape their impending doom.
Split into simpler sentences: Being a devout Hindu, he opened a small side door (kavad) to the stronghold for the cattle. Thereby, allowing the cows to escape their impending doom.