A passenger’s trip to the bathroom ended in an emergency landing when she became stuck inside the lavatory.

A cross-country United Airlines flight from Washington D.C. to San Francisco was forced to land in Denver after the plane’s bathroom door would not open, trapping the passenger inside.

PLANE PASSENGER OPENS EMERGENCY EXIT FOR 'A BREATH OF FRESH AIR'

The flight landed in Colorado at 7:21 p.m. MDT, where officials boarded the plane to help the unidentified passenger get out safely.

In footage of the incident shared to Twitter by a passenger, two people are seen trying to pry open the lavatory door. According to the tweet, the Denver Fire Department was also called to retrieve the passenger from the bathroom.

CLICK HERE TO GET THE FOX NEWS APP

“Well folks it’s never a dull moment on @united, we have to make an ‘emergency landing’ in Denver because a passenger got stuck in the bathroom. You can’t make this up," the passenger wrote.

In a statement from United Airlines to Fox News, a spokesperson said the airline has apologized to passengers for the delay.

CLICK HERE TO SIGN UP FOR OUR LIFESTYLE NEWSLETTER

Airplane bathroom

A cross-country United Airlines flight from Washington D.C. to San Francisco was forced to land in Denver after the plane’s bathroom door would not open, trapping a passenger inside. (iStock)

“Flight 1554 from Washington D.C. to San Francisco diverted to Denver to assist a customer who was in the lavatory when the lavatory door became inoperative. The passenger was safely removed from the lavatory after landing, and customers have since continued on to their destination on a new aircraft. We are reaching out to all customers onboard and the customer in the lavatory to apologize,” the statement read.

FOLLOW US ON FACEBOOK FOR MORE FOX LIFESTYLE NEWS

This passenger isn’t the first to find herself locked in a bathroom. Last year, WWE wrestler Heath Slater became trapped in the lavatory on a flight to Florida the day before New Year’s Eve. A team of crew members had to unhinge the door to let him out.