When you need access to both ends of the collection.
Deque is preferred when you require flexibility to add or remove elements from both ends of the collection. This is useful in scenarios like caching, where you might implement both LRU (Least Recently Used) and MRU (Most Recently Used) strategies. For example, to manage a recent activity log, Deque can efficiently add new activities to the front and remove the oldest from the back.