Six people - including a 13-year-old boy - have been arrested following a weekend of chaos in Auchinleck, say police.
Three men, aged 22, 28, 39 and two women, aged 29 and 36, as well as the 13-year-old, have been arrested and charged in connection with the "planned and targeted" disorder.
Police say that further arrests may be possible.
Public order officers attended to ensure safety when crowds refused to disperse when requested, and officers have remained in the area since then.
Police say enquires are ongoing to identify others involved and have urged anyone with information to get in contact with them.
One officer was injured after a brick was thrown at them on Saturday night.
Police have stepped up patrols in the area.
Detective Inspector Ewan Bell, who is leading the investigation, said: “We are appealing for information into this disorder as we make further arrests.
“We believe this disorder to be planned and targeted.
"Unfortunately, during the incidents, some of those gathered became extremely hostile towards police.
"An officer was injured by a brick and he had to be taken to hospital for treatment before being released.
"For them to be attacked while doing their jobs is completely unacceptable and will not be tolerated.
“We have stepped up patrols in the area and anyone with concerns should speak to officers. We’re committed to identifying those responsible and taking further action.
“Anyone who thinks they may have information, CCTV or dashcam footage which could assist us in our investigation is urged to come forward.”
Temporary Chief Superintendent Raymond Higgins said: “This type of disorder causes fear and alarm to residents and I would like to reassure the local community that enquiries into what happened are ongoing.
"We would ask that you do not speculate on what is going on here and allow our officers to carry out their enquiries.
"The community of Auchinleck deserve to live in peace and free from this type of crime.”
Anyone with information is urged to contact Police Scotland on 101 quoting 2137 of 25 November, 2023. Alternatively, information can be given anonymously to Crimestoppers on 0800 555 111.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules here