How do beaver damns benefit the environment?

Although beavers build damns to protect themselves they also help generate wetlands which are natural habits for a lot of other species.  They are a key contributor to the ecosystem they live in.