"Baywatch" actress Pamela Anderson, who has filed for divorce from Rick Salomon, has been granted a restraining order against her estranged husband.

Anderson had complained that Salomon’s violent behaviour became very severe and she was scared of what he could do to her, reports people.com.

According to court documents, the 47-year-old claimed that "his behaviour became erratic, out of control and caused" her fear for her safety.

The actress recounted an occasion when he put a pillow over her face while they were getting intimate in an attempt to choke her in January. 

The documents also claimed that when Salomon is upset, he calls her "cruel names." 

She claimed that Salomon sent her a number of harassing e-mails and text messages. He also sent her, her nude photographs that he had taken without her consent.

The couple got married first in 2007 but sought an annulment two months later. They revived their relationship after seven years and got married once again in January 2014. 

Six months later, she filed for divorce but then asked the judge to dismiss her petition in August 2014.