The inferior gluteal nerve is a motor nerve that originates from the sacral plexus and innervates the gluteus maximus.