Sometime in the future of the 21st century, in a time when the Greenhouse Effect has melted the icecaps, submerging many of the coastal cities in water, mankind depends upon computers with artificial intelligence to maintain our way of life. Man has also found new friends in A.I., in the form of robots that are used for a variety of functions. A robotic boy, the first programmed to love, David (Haley Joel Osment) is adopted as a test case by a Cybertronics employee (Sam Robards) and his wife (Frances O'Connor). Though he gradually becomes their child, a series of unexpected circumstances make this life impossible for David. Without final acceptance by humans or machines, David embarks on a journey to discover where he truly belongs, uncovering a world in which the line between robot and machine is both vast and profoundly thin.