King Hammurabi of Babylonia enacted the first known building codes. The first known written building code was enacted by King Hammurabi in Babylon in 1758 B.C. Literally written in stone, the harsh ...