Because magnesium does attract water, it’s essential to drink plenty of water when taking magnesium for constipation. Indeed, magnesium can lead to dehydration if you fail to drink an adequate amount of water with your supplement.