This fish originates from Southeast Asia, found in Thailand, Laos, Cambodia, Vietnam, and on the islands of Java and Sumatra. It is most often found in shallow, stagnant waters and small rivers with slow currents. Typical substrates for them are soft, silty bottoms, covered with fallen leaves, branches, and various snags. Water conditions can vary significantly depending on the season. For example, during the dry season, the water often 'blooms' with algae, while during the wet season, it can be both crystal clear and very turbid. These fish are capable of successfully adapting even to quite extreme conditions. There have been cases where they were found in a shallow (up to half a meter) puddle, connected to a river only by a small channel, where there was no vegetation, and the bottom was pure mud. Wild animals at that time used this drying puddle as their only water source. Some individuals survived the dry season in puddles where the silt and water formed a consistency similar to porridge.