Mettā can be a foundation of cornerstone for Equanimity (Upekka). As we cultivate a mind that is more and more impartial the mind where Mettā can shine evenly on everyone the mind becomes less attached to preferences and this quality of mind is more able to meet any moment with ease.