The development came some 17 hours after a man's body was found in Town Park in Glenrothes, Fife.
Police sealed off the park as they combed the area for clues.
A spokesman said: "Following enquiries in relation to the suspicious death of a man whose body was discovered in the Town Park area of Glenrothes at around 5am, a 24-year-old male has been arrested and charged with murder. He is appearing at Kirkcaldy Sheriff Court on Monday."
The dead man is not being named until his family have been informed of his death.