ELI5 What happens to your eyes when you directly look into the sun?

ELI5 What happens when you look into the sun? Is it safe or does it have sby bad affect?