The phrase "the best of both worlds" traces to the late 16th century, with Shakespeare giving it early literary currency.
In The Merchant of Venice, Portia declares she'll choose a husband "so I may... get the best of both worlds"—combining heart, mind, and eyes in one choice. The context: navigating competing desires (love vs. duty, passion vs. reason).
By the 18th century, the phrase had entered common usage to describe any situation combining advantages of two distinct options—city and country, work and leisure, tradition and innovation. The "worlds" are metaphorical: frameworks, lifestyles, identities.
Now a standard idiom, it appears in marketing, politics, lifestyle journalism, and everyday speech—always promising a synthesis that reality often complicates.