Donor kidneys are allocated based on a set of criteria to ensure fairness and optimize the success of the transplant. The criteria include blood type, tissue match, waiting time, and the severity of the recipient’s condition. The goal is to match the most suitable donor with the recipient to maximize the transplant's success.