Why did Egyptians stopped building pyramids?

by eldianteenswagger

Egyptians used build huge constuction for the pharaohs' tumulation for at least 1500 years, first as mastabas then as pyramids. Then they stopped building them, and opted to underground mausoleums as the ones in the King's Valley. I can imagine the main reason for this is that the former were more difficult and costly to build, but is it the main reason? Or is there another other cause for such a difference between the two time periods?

Bentresh