Complex sentence: If time allows, several generations may occur but when the water evaporates and little remains of their pool, they dig a hole in the mud and bury their eggs.
Split into simpler sentences: If time allows, several generations may occur. When the water evaporates and little remains of their pool, they dig a hole in the mud and bury their eggs.