During its 1986 apparition, Halley became the first comet to be observed in detail by spacecraft , providing the first observational data on the structure of a comet nucleus and the mechanism of coma and tail formation.