A man who broke into Taylor Swift's New York City townhouse and took a nap has been sentenced to six months in jail.

According to the New York Post's Page Six, 22-year-old Roger Alvarado, of Homestead, Florida, was sentenced Tuesday after pleading guilty to criminal contempt and attempted burglary.

TAYLOR SWIFT WINS $1.08M COMMISSION LAWSUIT AGAINST REALTOR

The outlet says Alvarado plans to return to Florida after his jail stint, which is nearly finished, and serve five years' probation. He must also complete a mental-health program.

Officers found Alvarado asleep in the pop star's home in the Tribeca neighborhood of Manhattan in April. Police say he had also used her shower. Swift was not home during the break-in.

Alvarado had been arrested at the same address last February on charges of breaking the front door with a shovel.

The Associated Press contributed to this report.