Antonio Banderas came to many conclusions about his life following a heart attack he suffered in 2017.

The “Mask of Zorro” actor told Variety and iHeart’s movie podcast the health scare had him reassessing his priorities.

RELATED: ‘Shrek’ Co-Stars Antonio Banderas And Eddie Murphy Reunite

“I came [to] the conclusion that I had to do the things that I want to do, that I don’t want to die thinking, ‘I should have done that or I should have said that.’ Money in the bank became a very Machiavellian intellectual thing,” Banderas shared.

“When you get close to death, only the essential things remain,” he continued. “Things that you thought at some point were important, they disappear.”

One of the significant realizations Banderas had was that he spent far too much time working on films.

“Movies became an enormous accident in my career, an accident of over 112 movies, but the thing that I fell in love within my profession is the theatre, seeing actors on the stage, a group of people just telling stories to another group of people,” he said. “I just love that ritual.”

RELATED: Antonio Banderas Says Girlfriend Saved His Life During A Heart Attack

“There was something there, very specific, very beautiful that has to do with civilization, with the possibility of these people reflecting in front of others about ourselves,” he elaborated. “You can make them laugh, you can make them cry, you can go to many different places,” he said of his love for theatre.

To that end, Banderas is opening a new theatre company called the Teatro del Soho CaixaBank. The theatre is based in Malaga, Spain and includes a school for 600 students.