The man was found unconscious at a flat in Caledonia Court on Wednesday.
He was treated at the scene and taken to Galloway Community Hospital where he was pronounced dead a short time later.
Police Scotland said there were no apparent suspicious circumstances and the procurator fiscal had been informed.
Police are investigating the unexplained death of a 32-year-old man in Stranraer.