It can be tough getting a yellow cab to go from Manhattan to The Bronx — even for a mayor.

The mayor of San Juan, Puerto Rico, got booted from a yellow cab on Wednesday after the driver claimed he didn’t know how to get her from Greenwich Village to a hotel in The Bronx.

Carmen Yulin Cruz was with three co-workers and $3.50 into the ride when the taxi driver claimed he had no GPS or other way of locating The Opera House Hotel — even though she had provided the East 149th Street address.

“He kicked us out,” she told reporters after a press conference at City Hall on Thursday advocating for the release of controversial Puerto Rican political prisoner Oscar Lopez Rivera.

“He told us we had to get out and he knew he was not doing the right thing because I said, ‘Well, I’m not going to pay you. You’re kicking me out of the cab,'” added Cruz. “He said, ‘You don’t have to pay me.’ So he knew.”

Cruz and her crew found another yellow cab, but that driver also complained after he learned their destination was in The Bronx.

Despite his complaints, he ended up taking them to their hotel — which Cruz chose at the recommendation of City Council Speaker Melissa Mark-Viverito as a way to support an outer-borough business.

“It’s not about us. It’s about people in The Bronx having the opportunity to do right for themselves,” said Cruz. “Just ’cause you’re going outside of Manhattan doesn’t mean you’re going to a lesser place.”

Mark-Viverito called the incident involving her pal a “shame.”

She said they were going through the formal complaint process with the Taxi and Limousine Commission.

“It is illegal in the city of New York to deny anyone a ride,” said Mark-Viverito. “So we’re going to continue to strive each and every day to ensure that the yellow cab industry and all cab services are ones that are providing service for all sectors of the city.”

TLC spokesman Allan Fromberg called Cruz’s experience an “unfortunate aberration.”

“We sincerely regret the mayor’s negative experience, and assure her that we will investigate this fully and hold the driver accountable for his actions,” he said.

Cruz is in town for the Ideas City Festival at the New Museum.