Flint Lockwood always wanted to invent something great. Despite his creativity and zealous enthusiasm, his inventions, including spray on shoes, a remote controlled television, rat birds, hair-un-balder, and a flying car, all end in failure. Flint lives in Swallow Falls, a tiny fictional town in the middle of the Atlantic Ocean, with Tim, his widowed technophobic father who misunderstands his son's talent. The town's only source of revenue is the Baby Brent Sardine cannery that has closed down, leaving the town only sardines for nourishment. Along with the aid of his pet monkey, Steve, Flint invents a machine that transforms water into food, called the "Flint Lockwood Diatonic Super Mutating Dynamic Food Replicator" (FLDSMDFR for short). Flint turns on the FLDSMDFR in his laboratory, but ends up short circuiting the house. He decided to power the machine by hooking it up to the nearby power plant. When he turns the machine back on it ends up rocketing through town, destroying the newly opened tourist attraction Sardine Land, and shooting up into the stratosphere. While recuperating from his failure, he meets Samantha "Sam" Sparks, a weather intern whose big break was foiled by Flint's actions. Their conversation is cut short when rainbow colored clouds float over the town and begin to rain cheeseburgers.