Wafer thin silicon crystals arranged in highly specific structures. Add some gold and other metals, and the resulting conglomerate can do the thinking for me.
The PCB as a whole? Usually fiberglass or some other substrate to which sheets of copper are fastened. Then wherever you don't want a copper trace is removed by acid. Then the board is covered by something that acts as a protective layer to prevent oxidation.