A man allegedly obsessed with Taylor Swift broke into the singer's New York City townhouse for the second time early Thursday morning and was promptly arrested for burglary, police said.

Roger Alvarado, 23, of Homestead, Florida, climbed a ladder to the residence, used a brick to break a glass window and then attempted to remove property from inside, police said.

Swift was not home at the time of the break-in, at 2:20 a.m. The residence is empty and under renovation.

Swift has an active order of protection against Alvarado from a prior case when he pleaded guilty to a break-in at the same residence. He was ordered to complete a mental health program.

Taylor Swift arrives at the Billboard Music Awards at the MGM Grand Garden Arena in Las Vegas, May 20, 2018.(Jordan Strauss/Invision/AP, FILE) Taylor Swift arrives at the Billboard Music Awards at the MGM Grand Garden Arena in Las Vegas, May 20, 2018.

In that case, from April 2018, Alvarado took a shower in the building and slept in her bed.

This time, Alvarado is charged with stalking, burglary, felony criminal contempt for violating the order of protection, criminal mischief and two counts of possession of burglar tools. Photos taken for The Daily Mail show police escorting Alvarado out of the 1st Precinct Thursday.

He faces a minimum of five years in prison and could face seven years if it's determined he "successfully gained access to the apartment."

The suspect appeared in court on a bail hearing late Thursday. Judge Ilana Marcus set a bail of $75,000, including over $30,000 cash. He has not posted bail.

Alvarado’s attorney objected to cameras in the court, due to the "high profile nature of this case" that could have "serious collateral consequences" on Alvarado’s future.

Alvarado will be back in court on March 12.

Swift posted on Instagram overnight Friday: "We have to live bravely in order to truly feel alive, and that means not being ruled by our greatest fears."

ABC News' Marissa Parra contributed to this report.