Among patients with AKI, magnesium level derangement was an independent risk for AKD in critically ill AKI patients. Monitoring serum magnesium and proper correction in critically ill patients with AKI should be considered an AKD preventive intervention in future trials.