Use when an event feels grand or carries importance, which is often planned and dressy. The gala's luxurious setting certainly brought a sense of occasion.
Pro Tip 2/2
Not Casual
Avoid using it for casual, everyday events as it implies a higher degree of formality or ceremony. The state dinner, with all its protocols, had a clear sense of occasion.