capacitors

thanks for the video. Why is it that in a power supply system, electrolytic capacitors are used before the Voltage regulator? why cant we use any other type of capacitor and what will happen if we use any other type apart from electrolytic?