Image from NIMH.
An electromagnetic stimulating device placed on the scalp can induce or modify electrical activity in underlying brain tissue. Aimed at the associated area of the motor cortex such stimuli can produce movement of voluntary muscles and may treat certain mental disorders.
Credit