What does a mosfet do?

Controls a (potentially large) current flow with an applied voltage (essentially no current flow). Very high switching rates are possible.