An Iranian man who lived at Paris Charles de Gaulle airport for 18 years and inspired Steven Spielberg’s 2004 film The Terminal died Saturday at the airport, officials said.

Iranian Merhan Karimi Naseri, who lived at Charles de Gaulle Airport for 18 years and inspired the movie “Terminal,” has died.Photo: Michel Euler/AP/Profimedia

Merhan Karimi Nasseri died of a heart attack in Terminal 2F of the airport around noon, a Paris airport official said. The police and the medical team gave him first aid, but he could not be saved, the official said.

According to French media reports, Karimi Nasseri, who is believed to have been born in 1945, lived in the airport’s Terminal 1 from 1988 to 2006, first because he did not have a residence permit and then by his own decision.

In recent weeks, he has been living at the airport again, an airport official said.