Egyptian-American actor Rami Malek first grabbed the world's attention after taking the lead role in the TV series Mr. Robot. But, 2018 was the year that saw him steal the spotlight after playing Freddie Mercury in the Queen biopic Bohemian Rhapsody.

The 37-year-old has had a long history with the camera ... long before these two hits. 

Over the years, he's taken up several roles in TV shows and films. Without further ado, here's the evolution of the gem that is Rami Malek:

From "Gilmore Girls" (2004)

Malek played the role of Andy, Lane's classmate, in the fourth season of the popular series Gilmore Girls.

From "Over There" (2005)

Malek played the role of Hassan in two episodes in the drama series Over There.

From "Medium" (2005)

Malek played the role of Timothy Kercher in one episode of the TV series Medium.

From "The Night at the Museum" (2006)

Malek played the role of Pharaoh Ahkmenrah in the trilogy Night at the Museum which began in 2006 and ended in 2014.

From "The War At Home" (2005-2007)

Malek played the role of Kenny on the comedy series The War at Home.

From "24" (2001-2010)

Malek played the role of Marcos Al-Zacar in Season 8 of the TV series 24.

From "The Pacific" (2010)

Malek played the role of PFC Merriell 'Snafu' Shelton in six episodes of the mini TV series The Pacific.

From "Larry Crowne" (2011)

Malek played the role of college student Steve Dibiasi in the film Larry Crowne, directed by Tom Hanks.

From "Alcatraz" (2012)

Malek played the role of Webb Porter in one episode of the series Alcatraz.

From "Battleship" (2012)

Malek played the role of a watch officer in the 2012 science-fiction thriller Battleship.

From "The Master" (2012)

Malek played the role of Clark in the Oscar-nominated film The Master.

From "The Twilight Saga: Breaking Dawn - Part 2" (2012)

Malek played the role of an "Egyptian coven" Benjamin in the Twilight Saga: Breaking Dawn - Part 2.

From "Ain't Them Bodies Saints" (2013)

Malek played the role of Will in the crime film Ain't Them Bodies Saints.

From "Short Term 12" (2013)

Malek played the role of Nate in the drama film Short Term 12.

From "Oldboy" (2013)

Malek played a role in the 2013 remake of the South Korean film Oldboy.

From "Believe" (2014)

Malek played the role of Dr. Adam Terry in one episode of the series Believe.

From "Need for Speed" (2014)

Malek played the role of Finn in the action film Need For Speed.

From "Da Sweet Blood of Jesus" (2014)

Malek played the role of Seneschal Higginbottom in the thriller film Da Sweet Blood of Jesus.

From "The Night of the Museum: Secret of the Tomb" (2014)

Malek played the role of Pharaoh Ahkmenrah in the trilogy Night at the Museum which began in 2006 and ended in 2014.

From "Mr. Robot" (2015-2018)

Malek played the lead role of Elliot Alderson in the hit TV series Mr. Robot.

From "Until Dawn" (2015)

Source: IMDb

Malek voiced and motion-captured the role of Joshua in the video-game Until Dawn.

From "Buster's Mal Heart" (2016)

Malek played the role of Buster in the mystery film Buster's Mal Heart.

From "Papillon" (2017)

Malek played the role of Louis Dega in the biographical drama film Papillon.

From "Bohemian Rhapsody" (2018)

Malek played the role of Freddie Mercury in Bohemian Rhapsody which tells the story of the legendary British rock band Queen.