What is the function of an axon?

To relay a signal from the nerve cell body to the axon terminal.

The axon is the “tail” You see in most diagrams of a nerve cell. It acts as the wire in which a nerve signal flows.