Complex sentence: The third Chinese Kapitan of Kuala Lumpur appointed in 1868, Yap Ah Loy, aligned himself with Tengku Kudin, and the rival Chinese gang allied themselves with Raja Mahdi.
Split into simpler sentences: The third Chinese Kapitan of Kuala Lumpur, Yap Ah Loy, was appointed in 1868. The Chinese Kapitan Yap Ah Loy aligned himself with Tengku Kudin, and the rival Chinese gang allied themselves with Raja Mahdi.