The royal pedigree of King Charles II of Spain is entangled and ultimately collapsed as King Charles II failed to produce an heir. Why (from a genetic perspective) did this happen? Were the Hapsburgs doomed from the start when they started inbreeding, or could there have been another outcome?