Damage to the central nervous system caused by traumatic injury or neurological disorders can lead to permanent loss of voluntary motor function and muscle paralysis. Here, we describe an approach that circumvents central motor circuit pathology to restore specific skeletal muscle function. We generated murine embryonic stem cell-derived motor neurons that express the light-sensitive ion channel channelrhodopsin-2, which we then engrafted into partially denervated branches of the sciatic nerve of adult mice. These engrafted motor neurons not only reinnervated lower hind-limb muscles but also enabled their function to be restored in a controllable manner using optogenetic stimulation. This synthesis of regenerative medicine and optogenetics may be a successful strategy to restore muscle function after traumatic injury or disease.