How was Charles the first related to Charles the second?

Charles the 1st was Charles 2nd's father.