FIREFIGHTERS used cutting equipment to free a man impaled on railings.
The man, who is in his 40s, sustained a head injury and was taken to hospital by ambulance.
Emergency vehicles were at the scene early on Saturday morning at Gwersyllt railway station.
Officers from North Wales Police, British Transport Police, North Wales Fire Service and the Welsh Ambulance Service were all involved in the rescue operation.
A spokesman for the British Transport Police said: “At 5.17am, officers received a report that a man had been injured on some fencing at the Gwersyllt railway station.
“They went to attend the scene together with North Wales Police, the local fire service and the ambulance service.
“The man was subsequently taken to hospital and he is receiving treatment for his injuries.
“The incident is not being treated as suspicious.”
A spokesman for the Welsh Ambulance Service added: “We were called at 4.49am to Gwersyllt railway station.
“We sent a paramedic in a rapid response vehicle, an emergency ambulance, a British Association for Immediate Care doctor and an ambulance officer to the scene.
“The man, who is in his 40s, was taken to the Maelor Hospital with a head injury.”
North Wales Fire and Rescue Service said it received a call to a report of a man impaled on railings off Mold Road, Gwersyllt.
The spokesman said: “We assisted in cutting the railings so that the casualty could be taken to hospital.”
The spokesman added firefighters from Wrexham station as well as personnel from the technical rescue unit also based in Wrexham attended the scene.
Gwersyllt East and South ward is represented by two councillors on Wrexham Council – David Griffiths and Bernie McCann.
Cllr McCann said: “It is very sad to hear this news.
“I hope the man involved makes a full recovery.”
Cllr Griffiths said: “It is terrible for anyone to be injured in this way. We wish him a speedy and complete recovery.”
Members of the public took to Twitter to report the high presence of energency services.
Steve Jones wrote: “Nine police cars, two fire engines and ambulance outside railway station in Gwersyllt by Lidl, lots of activity going on.”