Originally posted by NineCoronas
Vader died from the lightning. There is a site somewhere discussing this, but if you notice in the movie, you see his bones glowing from the heat of the electricity.
Yes, his bones were glowing, but the site concluded that the immediate cause of Anakin's death was suffocation from the failure of his life support systems (because of the Force lightning), not the effect of the Force lightning on his organic parts.