Why did some pharaohs marry family members?

to prevent conflict
to ensure family harmony
to keep their bloodline “pure”
to ensure that the dynasty continued