Oscar Otero Aguilar, a vet from Mexico City, was posing with a handgun for his Facebook page.
However, his search for an impressive profile picture turned tragic when he shot himself in the head and died on the way to hospital.
The gun was loaded and went off as he tried to take the picture, 'The Huffington Post' reported.
Police said he had been messing around with the gun and taking pictures when it accidentally went off.
Aguilar's Facebook page is filled with selfies, with pictures of himself in his car, posing with women and other images, the report said.