(Click here if you are having trouble viewing the photos or video on your mobile device.)

SAN JOSE — A marathon 34-hour police standoff at a South San Jose hotel ended when a man wanted on multiple felony warrants was taken into custody early Tuesday, according to police.

The suspect was expected to be booked into Santa Clara County Main Jail, San Jose police Sgt. Enrique Garcia said. Official details about his arrest were not immediately released.

San Jose police went to the Wyndham Garden San Jose Silicon Valley, on Silicon Valley Boulevard near the Highway 101-Highway 85 connector, around 2:25 p.m. Sunday to contact a man who had several warrants issued for his arrest.

But the man instead barricaded himself inside a room and refused to surrender, police said. Officers with the MERGE unit — San Jose’s version of SWAT — worked over three days to coax out the man peacefully. The man was arrested around :30 a.m. Tuesday.

The stalemate was relatively calm throughout, though it did severely inconvenience guests on the second-floor area where the suspect was staying. They were relocated either to other rooms or transferred to nearby hotels.

Some guests describe “sleepless, spooky” night with SWAT team in standoff with suspect, wanted for outstandingly felony warrants, still holed in 2nd floor room of Wyndham Motel in San Jose. pic.twitter.com/RFwXrvj88i — @Rob Fladeboe kron4 (@KRON4RFladeboe) January 22, 2018

Police decided to wait out the suspect rather than force their way in and potentially provoke a violent conclusion.

“We have been in contact with the individual, we have been talking to him virtually all night,” Capt. Jason Dwyer said Monday. “Negotiations have not been necessarily bad. We haven’t made a lot of progress, but he has not made necessarily any threats at this point. We’re continuing to negotiate, we don’t want to force a confrontation with the individual.”

Police did not comment on reports from witnesses and staff that the suspect was holding someone hostage, but a law-enforcement source said the incident was being treated as a potential hostage situation. That stemmed from uncertainty about whether a companion of the suspect was being kept from leaving.

Santa Clara County Sheriff’s deputies were on the scene throughout to assist with the response and relieve weary officers as the standoff passed a full day in length.