God remembered Noah, as well as all the wildlife and all the livestock that were with him in the ark. God caused a wind to pass over the earth, and the water began to subside.
References for Genesis 8:1
The sources of the watery depths and the floodgates of the sky were closed, and the rain from the sky stopped.
The water steadily receded from the earth, and by the end of 150 days the waters had decreased significantly.
The ark came to rest in the seventh month, on the seventeenth day of the month, on the mountains of Ararat.
References for Genesis 8:4
The waters continued to recede until the tenth month; in the tenth month, on the first day of the month, the tops of the mountains were visible.
After 40 days Noah opened the window of the ark that he had made,
and he sent out a raven. It went back and forth until the waters had dried up from the earth.