The function of motherboards are to attach everything together such as the CPU, ROM, RAM, PCI slots and USB ports and so, make it all work together. The motherboard connects directly to the power supply, then the other components connect to the motherboard.