The core answer: Antacids that contain magnesium (and aluminum or calcium) can bind doxycycline in your digestive tract and reduce how much of the antibiotic you absorb. Do not take them at the same time. A common rule of thumb is to keep doxycycline and these antacids at least two.