Now playing
01:57
Trump's 4 business bankruptcies in 2 minutes
Green Party presidential nominee Jill Stein waits to be introduced prior to a press conference at the National Press Club August 23, 2016 in Washington, DC.
PHOTO: Win McNamee/Getty Images
Green Party presidential nominee Jill Stein waits to be introduced prior to a press conference at the National Press Club August 23, 2016 in Washington, DC.
Now playing
01:44
Jill Stein raises millions for recount
Former Democratic US Presidential candidate Hillary Clinton speaks to staff and supporters at the New Yorker hotel after her defeat in the presidential election November 9, 2016 in New York. / AFP / Brendan Smialowski        (Photo credit should read BRENDAN SMIALOWSKI/AFP/Getty Images)
PHOTO: BRENDAN SMIALOWSKI/AFP/Getty Images
Former Democratic US Presidential candidate Hillary Clinton speaks to staff and supporters at the New Yorker hotel after her defeat in the presidential election November 9, 2016 in New York. / AFP / Brendan Smialowski (Photo credit should read BRENDAN SMIALOWSKI/AFP/Getty Images)
Now playing
02:14
Scientists urge Clinton to call for recount
LYNDEN, WA - MAY 07: Republican presidential candidate Donald Trump gives a speech during a rally at the The Northwest Washington Fair and Event Center on May 7, 2016 in Lynden, Washington. Trump became the Republican presumptive nominee following his landslide win in Indiana on Tuesday. (Photo by Matt Mills McKnight/Getty Images)
PHOTO: Matt Mills McKnight/Getty Images North America/Getty Images
LYNDEN, WA - MAY 07: Republican presidential candidate Donald Trump gives a speech during a rally at the The Northwest Washington Fair and Event Center on May 7, 2016 in Lynden, Washington. Trump became the Republican presumptive nominee following his landslide win in Indiana on Tuesday. (Photo by Matt Mills McKnight/Getty Images)
Now playing
03:25
Donald Trump's wild ride
Now playing
01:46
Trump's challenges in the Middle East
donald trump undocumented immigrants crime fact check origwx ty_00013807.jpg
donald trump undocumented immigrants crime fact check origwx ty_00013807.jpg
Now playing
02:47
Fact checking Trump on crimes by immigrants
PHOTO: Mark Makela/Getty Images/Lintao Zhang/Getty Images
Now playing
01:26
Trump vs. the tape on Obama and the protester
Now playing
01:28
Trump compares Clinton email probe to Watergate
Members of the Secret Service rush Republican presidential candidate Donald Trump off the stage at a campaign rally in Reno, Nev., on Saturday, Nov. 5, 2016. (AP Photo/John Locher)
PHOTO: John Locher/AP
Members of the Secret Service rush Republican presidential candidate Donald Trump off the stage at a campaign rally in Reno, Nev., on Saturday, Nov. 5, 2016. (AP Photo/John Locher)
Now playing
01:20
Donald Trump rushed off stage by Secret Service
PHOTO: AFP/Getty Images
Now playing
02:16
Trump reads letter from Patriot's coach at rally
US Republican presidential nominee Donald Trump speaks during rally at the Atkinson Country Club in Atkinson, New Hampshire on November 4, 2016.
PHOTO: Mandel Ngan/AFP/Getty Images
US Republican presidential nominee Donald Trump speaks during rally at the Atkinson Country Club in Atkinson, New Hampshire on November 4, 2016.
Now playing
01:56
Trump on US officials: 'What a group of losers'
donald trump nice and cool pensacola fl bts_00001523.jpg
donald trump nice and cool pensacola fl bts_00001523.jpg
Now playing
00:49
Trump's mantra in campaign's final week: Stay on point
donald trump nice to hillary clinton and democrats orig cm_00000000.jpg
donald trump nice to hillary clinton and democrats orig cm_00000000.jpg
Now playing
01:52
Audio of Trump praising the Clintons and Democrats
cuomo lewandowski hillary clinton email exchange newday_00002327.jpg
cuomo lewandowski hillary clinton email exchange newday_00002327.jpg
Now playing
01:28
Cuomo grills Lewandowski on Clinton email 'hypocrisy'
Now playing
00:10
This video is no longer available
Now playing
01:49
Meet the other Hillary Clinton and Donald Trump
(CNN) —  

Donald Trump walked up to a gold genie lantern, adorned with glowing red lights, and rubbed the side of it. Smoke swirled around him and a cracking sound filled the cavernous hall. On a theater-sized screen, the genie appeared.

“Good evening, master,” the genie said to Trump.

It was April 1990, and the palatial Trump Taj Mahal casino in Atlantic City was sold out on its opening week, drawing crowds by the thousands.

Trump paraded around with A-listers from Michael Jackson to New Jersey’s governor. Throngs of people shouted “Donald! Donald!” as he walked across marble floors and oversized plush carpets that sat beneath $14 million worth of Austrian crystal chandeliers.

“They talk about a million dollars a day,” Trump told reporters – a response to claims that the casino needed to bring in huge funds to cover its debt. “I think we’ve done that in the first few hours.”

Today, the Taj Mahal’s now-faded and frayed façade reveals what Trump wasn’t saying in 1990: that his casinos were failing – and that he almost brought down the city.

Trump has said he got out of Atlantic at the right time and that he left a rich man.

But financial and legal records obtained by CNN through the Freedom of Information Act offer a glimpse into how he struggled and maneuvered his way through a near financial collapse.

After Hillary Clinton trashed Trump’s business record in Atlantic City, he released a statement saying he “created thousands of jobs and made a lot of money in Atlantic City, which was what, as a businessman, I am supposed to do for my company and my family.”

The Trump campaign did not respond to CNN’s request for comment on this story.

The grim behind the glitter

On April 18, 1990, just two weeks after the Trump Taj Mahal opened its doors, Trump sat down for an interview with CNN’s Larry King, in a suite at the new casino.

“The Taj Mahal is a tremendous success. The things that I do are trophies,” Trump told King.

At this point, the Taj Mahal had already experienced four days in which its bank account contained less than zero dollars, with deficits as deep as $1.7 million dollars. It had been open for only 16 days, according to a New Jersey Division of Gaming Enforcement report from 1990.

The lack of money raised so many red flags that, by June, the state’s Division of Gaming Enforcement began monitoring the Taj’s bank balances on a daily basis – a very unusual practice, according to a former Casino Control Commission regulator.

The regulator told CNN recently that the opening of the Taj Mahal was “especially absurd,” particularly because of its high debt.

Trump already had other Atlantic City casinos – the Castle, Regency and Penthouse – and they were cash drains, according to a report issued by the New Jersey Casino Control Commission in August 1990.

They were “generating an insufficient level of cash flow” that was pushing the Trump Organization towards “financial collapse,” the report said.

Trump himself had a lot on the line as well. The Trump Organization was approximately $3.4 billion in debt, $832.5 million of which was personally guaranteed by Trump, according the 1990 Casino Control Commission report.

The New Jersey Division of Gaming Enforcement’s report chronicled the dire condition of the Trump Organization, revealing that it wasn’t bringing in enough money to support daily operations or its debt.

Trump used junk bonds at high interest rates — even though he had testified before the casino commission that he wouldn’t, according to the former Commission regulator.

PHOTO: Bettmann/Getty Images

At the time of the Taj Mahal’s opening, a number of slot machines were failing. Trump told King that this was because the machines were “too hot” – so busy that they shut down. However, reports at the time showed that Trump’s back of the house couldn’t keep proper track of the money coming in and out of the machines.

During the first month, the Taj’s revenue fell below forecasted levels. And this trend continued through the summer.

The Casino Control Commission began fielding calls and letters from contractors angry they hadn’t been paid by the Trump Organization. At least four lawsuits were filed in just one month claiming as much as $80 million, according to the August 1990 Division of Gaming Enforcement report.

Trump offered to pay $20 million in cash to contractors, and issued notes for the remaining $50 to $60 million over the next five years.

The ‘11th hour’ save

There was a deadline hanging over the Trump Organization’s head: June 15, 1990.

Trump had a personal loan payment of approximately $28 million due, and Trump Castle had to come up with $20 million, according to the Division of Gaming Enforcement report. Trump Castle couldn’t make it – it was in default, though with a 10-day grace period.

Then on June 26, in what the Casino Control Commission describes as “an 11th hour” save, Trump sought a $65 million dollar loan from nine banks – $20 million was handed out that day, allowing the organization to make its immediate payments.

Trump in front of slot machines at the Taj
PHOTO: Bettmann/Getty Images
Trump in front of slot machines at the Taj

Though the payment would buy Trump more time, it put strict stipulations on himself and his company and demanded a limit on his personal spending – $450,000 per month that year and decreasing over the next five years, the Division of Gaming Enforcement report states.

While there were no agreements for Trump to sell off some of his belongings or companies, gaming authorities noted that he may have to do so in order to ensure the survival of the Trump Organization.

The fear of one casino’s collapse creating a “ripple effect” to Trump’s other properties and then to Atlantic City itself, worried casino commissioners.

“The risk of substantial economic disruption at the casinos will be less with the restructuring than it is without it,” Valerie Armstrong, Casino Control Commission chairwoman, said at the time

In the end, the Casino Control Commission approved the $65 million bailout.

“If you have those casinos going out, eventually some of those people are going to locate at other casinos, but not the entire workforce—which then constitutes a drain economically on Atlantic City,” commission member, David Waters, told CNN at the time.

The former Casino Control Commission regulator said that while they could have pulled his licenses at any point, they chose not to do so because it could have had a devastating impact on the gaming industry, Atlantic City and the state.

“We had a great victory,” Trump told CNN after the 1990 hearing on the bailout. “I’m happy as hell.”

The Taj Mahal filed for Chapter 11 bankruptcy in 1991.