A law professor’s Uber ride to the Denver airport turned into a full-blown nightmare, when the driver told her he was going to instead take her to a hotel and pulled off the highway, she claimed in a series of tweets aimed at the ridesharing company.

Nancy Leong, who teaches at the University of Denver and has since taken down her account, said the driver wouldn’t unlock the doors even as she screamed at him.

“Hey @Uber your driver was taking me to the airport. He said he was going to ‘take me to a hotel’ and got off the highway. We got to a stop light. I started yelling ‘let me out of the f—ing car’ and he wouldn’t unlock the doors,” she tweeted.

Leong started pounding on the windows of the car, but the driver would only let her out when he saw some construction workers watching them from the side of the road. She then had to pound on the car to get the driver to remove her suitcase from the trunk.

“Then he got out of the car and started coming toward me,” she wrote. “Remember we are at a stop light at the bottom of a highway off ramp. There’s nothing around. Thank god there were construction workers there.”

The car rolled into the intersection, almost smashing into another vehicle, she said.

Leong called another Uber to take her to the airport.

Uber sent her back a canned tweet saying they were looking into the incident.

“Hi, Nancy. Our team will be reaching out to you personally,” the company tweeted. “We greatly appreciate your patience while we work to resolve this matter. Rest assured, we take this matter seriously.”

Uber officials told The Post that the company has banned the driver from the platform and is looking into the incident.

“What Nancy described is awful and unacceptable,” said a company spokesman. “This driver has been blocked from the app and we are investigating.”