Evan (Steve Carell) gets all the animals and all the people nearby on the ark when the water from the dam (that Congressman Long (John Goodman) built) ruptures. The ark makes its way to the Capitol building right in the nick of time before the new law on land and property gets passed. Evan stops Congressman Long and he's arrested. Some time later, Evan is with his family on a hike and talks with God (Morgan Freeman). God tells Evan that by building the ark and uniting people, he changed the world. During the end credits, the cast and crew dance to C+C Music Factory's "Gonna Make You Sweat (Everybody Dance Now)"
God: Let me ask you something. If someone prays for patience, you think God gives them patience? Or does he give them the opportunity to be patient? If he prayed for courage, does God give him courage, or does he give him opportunities to be courageous? If someone prayed for the family to be closer, do you think God zaps them with warm fuzzy feelings, or does he give them opportunities to love each other?