Complex sentence: They are Sunnis of the Shafi'i "madhab", and contract marriage alliances with the Mappilas and Bearys.
Split into simpler sentences: They are Sunnis of the Shafi'i Madhab. They contract marriage alliances with the Mappilas and Bearys.