Complex sentence: They didn't intermarry with the white Portuguese, largely due to the prevalent caste system and instead intermarried with the Marathi people, who either way belonged to the same caste.
Split into simpler sentences: They didn't intermarry with the white Portuguese, largely due to the prevalent caste system. They instead intermarried with the Marathi people, who (either way) belonged to the same caste.