While both manufactured homes and modular homes are built in a factory environment, there are some differences between the two. The main source of difference between modular and manufactured homes is the code to which they are built. Manufactured homes are built to a federal HUD code, while modular homes are built to state or local residential building codes.