Solidity gained popularity due to its association with Ethereum and its support for writing smart contracts. Ethereum's success as a leading blockchain platform for decentralized applications (DApps) and decentralized finance (DeFi) has led to widespread adoption of Solidity.