Then you build walls around those houses.
Then you build watch towers and defense platforms.
Then you build you first big building and it is probably going to be some type of pyramid.
Big base, smaller flat top, the easiest shape to build.
Maybe a block of apartments for the huge population would be nicer than all that effort to build a pyramid.