Two women and a man died in a series of linked incidents in Kilmarnock on Thursday night, Police Scotland has said.
A 39-year-old woman was found injured in a car park outside Crosshouse Hospital in the town at 7.45pm. She received medical care but died at the scene.
In the second incident 20 minutes later in Portland Street, a 24-year-old woman was stabbed.
Emergency services attended and she was taken to Crosshouse Hospital, where she later died.
The final incident, a fatal road crash, took place on the C50 – a road between the B7036 and the A76.
A 40-year-old man driving the car was pronounced dead at the scene.
Family relatives of the victims have been made aware.
Police Scotland said enquiries carried out so far have indicated that the incidents were linked.
An investigation is under way to establish the exact circumstances of what happened.
Officers are not looking for anyone else as part of the investigation and there is no ongoing threat to the public.
Chief Superintendent Faroque Hussain said: “A number of locations remain cordoned off as officers continue to conduct enquiries.”
He added: “Understandably, people will be shocked by what has happened. We are still in the process of establishing the full circumstances, however, I would like to reassure people that there is no wider threat to the community.
“Officers will be on patrol and anyone with any concerns can approach these officers.”
Local diversions are in place as a number of areas remain cordoned off in the town centre and ear on the road between the B7036 and A76.
Anyone who has any information which could assist this investigation should contact police on 101.