Thales used a method involving similar triangles to measure the height of pyramids. He observed that at a single point in time, the shadows of different objects form similar triangles. By comparing the ratio of his shadow's length to his height, Thales could determine the pyramid's height based on the ratio of its shadow's length at the same time. This technique works because corresponding sides of similar triangles have the same ratio. Though not perfectly accurate, it provided an early approximation of heights before modern precision methods.