A man in the Tampa, Florida, area picked the wrong car to burglarize not realizing it was an unmarked Sheriff's Office vehicle, according to deputies.

>> Read more trending news

Stephen Titland, 49, was arrested on Wednesday night on charges of attempted burglary, seven counts of auto burglary, and loitering and prowling, WFTS reports.

Deputies said homeowners in a neighborhood in Trinity, Florida, caught Titland on video trying to break into seven cars, but he was unsuccessful since all the doors were locked.

The next day, the Pasco County Sheriff’s Office said Titland tried to break into a deputy’s unmarked vehicle while several deputies were inside, according to WFTS.

Deputies identified Titland as the man who attempted to burglarize the other vehicles from the night before, and arrested him. Officials told WFTS that Titland was already on a felony probation for another burglary and criminal mischief that happened in Pinellas County.

Titland remains at the county jail on a $45,150 bond, according to jail records.