According to NASA, when a star gets too close to a black hole, intense tidal forces rip the star apart. This animation shows how some of the stellar debris is flung outward, while the rest falls toward the black hole causing a distinct X-ray flare that can last for a few years. (NASA Goddard)

Is there any death more beautiful than a star's? They form colorful, glowing nebulae, they explode into supernovas, and sometimes they get torn apart by black holes.

You can see an animation approximating that last event in the video above, courtesy of NASA. In a paper published Wednesday in Nature, researchers reported evidence of an event called a "tidal disruption," observed using X-ray telescopes. Basically, when a star comes too close to a black hole, the massive gravity of the latter pulls the former apart. In this case, the black hole in question had a mass a few million times greater than that of our sun.

[Real life ‘Death Star’ caught in the act of destroying a planet]

“We have seen evidence for a handful of tidal disruptions over the years and have developed a lot of ideas of what goes on,” lead study author Jon Miller of the University of Michigan said in a statement. “This one is the best chance we have had so far to really understand what happens when a black hole shreds a star.”

Here's what we're seeing: The gravity of the black hole pulls most of the star's material down in a filament, heating it to millions of degrees and creating an X-ray flare that astronomers are able to catch via telescopes, such as NASA's Chandra X-ray Observatory. But then something interesting happens: As the material falls into the black hole's event horizon — from which no light can escape — this flare disappears. So it appears to form a hot, smooth disk as the gaseous star remnants orbit the point at which the black hole will overtake them. Because the center of the disk is so hot, it expels some of its material outward as wind.

The tidal disruption event they observed — known as ASASSN-14li — occurred about 290 million light years away from Earth. But it's still the closest tidal disruption seen in a decade, according to NASA.

Read More:

An unexpected asteroid will fly surprisingly close to Earth on Halloween

Only 5 billion years until The Milky Way gets gobbled up

This dense white star is ‘cannibalizing’ its companion

Most Earth-like planets have yet to be born, study suggests

Real life ‘Death Star’ caught in the act of destroying a planet