Miners will continue to be compensated for their work through transaction fees once all the bitcoins have been mined. As the number of bitcoins in circulation reaches its cap, miners will rely more on transaction fees as an incentive to validate transactions and secure the network. This shift is part of the design of the Bitcoin protocol to ensure the network's sustainability and security in the long term.