Restless legs or akathisia can have many causes. One of these is certain psychiatric medications, such as antipsychotic medications or serotonergic antidepressants. The management of this syndrome depends on first determining the cause. For more information, see this article from American Family Physician.