An eclipse is an astronomical event that occurs when a celestial body totally or partially disappears from the view of the observer by occultation or transit.
In simple words, if the shadow is cast onto observer during an occultation or transit, it is called an eclipse.