Police in Glenrothes are appealing for witnesses after a man was seriously assaulted in the town's Forres Drive on Thursday evening.
The 28-year-old victim is being treated in hospital for "serious, but not life threatening" injuries.
Neighbours reported a large police presence in the area following a disturbance around 7.30pm, and riot police and ambulance crews were spotted in the hours that followed.
Police are keen to trace two men, one of whom was said to be carrying a weapon.
Inspector Kirk Donnelly, from Glenrothes Police Station, said: "This kind of violent incident has no place on our streets and we're appealing for anyone with information to come forward.
"We are particularly keen to hear from anyone who may have been in the Forres Drive area arount the time of the incident and saw anything suspicious.
"It is believed that two men were involved in the attack and one may have been in possession of a weapon. There is not believed to be any threat to the wider public."
Anyone with information should contact Police Scotland on 101 or Crimestoppers on 0800 555 111.