According to Wikipedia if we assume AC we define a cardinals number to be an ordinal that is not in bijection with any smaller ordinal.
Without AC, one takes the cardinality of a set $X$ to be the set of all sets that are in bijection with $X$ and are of minimal rank.
Why does one need AC for the first definition?
Thank you for your help.
You can make the first definition whether you have AC or not, but without AC you cannot then guarantee that every set has a cardinality: only well-orderable sets will have one.