Dental treatment can be done at any time during pregnancy. However, the best time to perform elective dental treatment during pregnancy is in the second trimester, weeks 14 through 20. Keep in mind that if you have a dental infection or swelling, you might need immediate treatment.