Embryos extend their anterior-posterior (AP) axis in a conserved process known as axis elongation. Drosophila axis elongation occurs in an epithelial monolayer, the germband, and is driven by cell intercalation, cell shape changes, and oriented cell divisions at the posterior germband. Anterior germband cells also divide during axis elongation. We developed image analysis and pattern-recognition methods to track dividing cells from confocal microscopy movies in a generally applicable approach. Mesectoderm cells, forming the ventral midline, divided parallel to the AP axis, while lateral cells displayed a uniform distribution of division orientations. Mesectoderm cells did not intercalate and sustained increased AP strain before cell division. After division, mesectoderm cell density increased along the AP axis, thus relieving strain. We used laser ablation to isolate mesectoderm cells from the influence of other tissues. Uncoupling the mesectoderm from intercalating cells did not affect cell division orientation. Conversely, separating the mesectoderm from the anterior and posterior poles of the embryo resulted in uniformly oriented divisions. Our data suggest that mesectoderm cells align their division angle to reduce strain caused by mechanical forces along the AP axis of the embryo.