Most of the Amazon basin is as flat as a pancake and laced with extravagantly meandering waterways. One school of thought holds that more than 145 million years ago, when Africa and South America were joined, the Amazon's main stem was connected to the Niger River and actually flowed in the opposite direction, toward the Pacific Ocean.