During the Civil War Iron Man and other heroes tried to hunt down all their fellow heroes who refused to work underneath the government (including Captain America). Thor wasn't around at the time so Stark decided to create a clone of him and unleashed it against his enemies. When Thor came back, Iron Man went to confront him and convince him to sign up as a government agent.
↪
http://imgur.com/gallery/EtDwU