When Bart wins a radio contest, he forgoes the cash prize and opts for the gag prize, an elephant. Unable to persuade him to take the money, the radio DJs get him an elephant. Bart names it Stampy and ties it to a post in the back yard.
However, the elephant costs too much, and after a failed money-making scheme, Homer wants to get rid of it. He sells it to an ivory dealer, but Bart escapes with Stampy before the dealer can take him. Stampy leads Bart to the tar pits, where he realizes Stampy wants to be with other elephants.
Homer arrives, but sinks into the tar pit. Stampy pulls him out, and a grateful Homer gives the elephant to the animal refuge.