Charlotte Newell, prosecuting, described the couple's troubled past.
The husband allegedly left the woman locked in the cellar on October 15, 2014 where she was able to call for help.
Police found her later that day tied up, extremely distressed, half naked and covered in bruises, jurors heard.
The gang, of two boys and three girls aged from 16 to 18, allegedly threw the pebbles at them and shouted 'Jews' as they sent the missiles flying.
Fearing for their welfare, the family of seven, who have remained anonymous, were forced flee the beach and take shelter.
Chatrooms with global appeal having people logged in from different countries.