Complex sentence: Mostly people believe in caste system, and marry within their castes.
Split into simpler sentences: Mostly people believe in caste system. They marry within their castes.