Bottom Line. Doxycycline is an effective antibiotic that treats a wide range of infections. However, it is not usually recommended for children aged less than eight or pregnant women in the last half of their pregnancy.