A judge on Friday granted Grammy award-winning singer Justin Timberlake a temporary restraining order against a woman he said was an obsessed, mentally unstable stalker who broke into his home.

In documents filed in Los Angeles Superior Court, the SexyBack singer said Karen McNeil, 48, trespassed onto his gated Los Angeles home on Thursday and was turned away at the door by his security guards, who called police.

A police spokeswoman said there was no information on any incidents or arrests made regarding the case. The court order said police detained McNeil, who appeared to be homeless, under an involuntary psychiatric hold.

The court ordered McNeil to stay at least 100 yards away from Timberlake and his property and refrain from making contact with the singer.

The security guards turned McNeil away from Timberlake's property during two separate occasions in June, during which she said she knew him, a claim he denies. The incidents were captured on security cameras, the court papers state.

McNeil's ever-increasing, aggressive and harassing conduct has become extremely frightening, the order said, adding that Timberlake fears for the personal safety of himself, his family and employees.

A hearing for McNeil is scheduled for November.