Lanfang Republic was a place a long, long time ago where people lived together and had their own rules and leaders. Kind of like a big, big family. They were mostly Chinese people who lived in a place called Borneo, which is really far away from China.
They had a very special thing called a "Kongsi". This was like a club or a team where all the people worked together and shared everything equally. Everyone had their job and they all helped each other out. They shared food, money and everything else they needed.
It was like they were all part of one big family. They even had their own army to protect themselves from other people who might try to take their things. They were very good at trading with other people too, and they made a lot of money.
But after a while, some other people from far away, who were more powerful, came to take over their land. They wanted to control everything, including the money they made from trading. This made the Lanfang Republic people very sad because they were used to being in charge of their own place.
So, in the end, the Lanfang Republic people had to stop being a "Kongsi". They had to join with the bigger, more powerful group of people who took over their land. It was a bit like losing a big game to the opposing team. But the legacy of the Lanfang Republic still remains and is considered a fascinating part of history.