The production buildings you can build in your main city use them.
A building without the required resource gives a lot less than a building with the relevant resource.
In your case you can produce lumber and stone but not marble, dye or wine efficiently