Loki may not be such a terrible villain as we thought. The God of the Trickster may not have had complete control when he invaded Earth in the first The avengers film. Let's go to the first Thor. In the film, Loki learns that he is adopted and a half-ice giant. His anger and pain made him think of a throne that should belong to Thor. After an unsuccessful attempt to seize power, Loki falls from Bifrost and seems to die. Then he appears in The avengers after falling from Bifrost into another dimension, where he meets the Other and Chitauri.

This is also where Loki and Thanos meet, and he gives Loki an army of Chitauri and the Scepter of the Mind Stone (this happens off-screen). The official Marvel website has updated this specific part of the canon MCU, and now it includes the fact that the Mindstone secretly subordinated Loki’s will to the intentions of Thanos. An excerpt from their website reads:

“Arriving at the Sanctuary through a wormhole caused by Bifrost, Loki met Other, the ruler of an ancient alien race, Chitauri and Thanos. By offering the dominion of the God of Evil over the beloved realm of his brother Earth, Thanos asked Tesseract in response to the Gifted Scepter, who acted as a mind control device, Loki could influence others. Unbeknownst to him, the Scepter also influenced him, inciting his hatred of his brother Thor and the inhabitants of the Earth. ”

This explains Loki’s hesitant dedication, as well as his confusion in the first The avengers the film in which he states: “I remember the shadow. Living in the shadow of your greatness. I remember how you threw me into the abyss, I was and must be king. ” Apparently, the Stone of Reason made Loki believe that Thor stole the throne from him and threw him into space, which did not happen.