The well being of astronauts can be threatened if solar superflares occur during spaceflight to Mars.