Police said the man was driving his two-wheeler last night when three persons on a motorcycle and two others on another two-wheeler rode past him with one of the riders standing.
He advised them to drive safely and soon after the motorcycle carrying the three persons toppled, sending them crashing to the ground.
The five accused, who were allegedly in an inebriated state, thrashed the man, who died on the spot, police said.
The deceased was a driver at a government primary health centre and is survived by wife and two sons.
A case has been registered against the five persons under various IPC sections including 302 (murder).