Explain in one to two sentences how a damn flooding a valley could create a new ecosystem

When a dam floods a valley, it creates a reservoir that changes the natural flow of water, altering the habitat and allowing for the establishment of new plant and animal species, leading to the development of a new ecosystem.