Police attended the area and found the man in the Scarcroft Road area where he was arrested.
They later found the found the body of a man in his 50s inside a flat on Holgate Road in York.
Scene guards were in place at locations across the city including the scene of the murder at the flat in Holgate Road, a bus stop outside York Railway Station and a taxi rank on Queen Street. Offices remain at the flat this morning as the investigation continues.
Police have arrested a man, aged 19. He remains in police custody for questioning.
Anyone who saw any suspicious activity in the area of Holgate Road between 11pm last night (Sunday 5 March 2017) and 3am on the morning of Monday 6 March is asked to call North Yorkshire Police on 101 and pass information to the Force Control Room.
Please quote reference 12170037677 when passing on information.
Police are not yet in a position to release the name of the victim.