While driving on a highway, I heard a rattling sound, which could best be described as tying cans to the car and dragging them along the road. I had never heard this noise before. No safety indicator lights turned on to alert me of any issue. With minutes of first hearing the sound, a very loud pop noise could be heard, followed by immediate engine power failure. I was able to navigate off of the highway, into a more residential area. Upon the vehicle coming to a stop on its own (I was not able to apply the brakes at all), a dark cloud of smoke starting coming from underneath the hood. Seconds later, it burst into flames. I was able to safely exit the vehicle with my dog, but if traffic were any heavier, there would have been no safe way for me to get off the road and to a safe location