in southeast asia, the kongsi republics were made up of hakka chinese mining communities that united into political entities that functioned as self-governing states. by the mid-nineteenth century, the kongsi republics controlled most of western borneo. the three largest kongsi republics were the lanfang republic, the heshun republic (fosjoen), and the santiaogou federation (samtiaokioe).