A small molecule or ion that binds to a protein or other structure. Binding of ligands to ligand gated ion channels mediates synaptic transmission.