Heimdall is a fictional character appearing in American comic books published by Marvel Comics. He is based on the god Heimdallr of Norse mythology. Heimdall is played by Idris Elba in the live-action films Thor, Thor: The Dark World and Avengers: Age of Ultron.