The Iron Giant (1999)

A young boy befriends a giant robot from outer space that a paranoid government agent wants to destroy.