Transboundary river cooperation provides an effective pathway to maintain regional security and sustainable development; however, its implementation is a pressing and prominent concern due to lack of appropriate compensation measures and effective incentive strategies. Here we develop a dual water-electricity cooperation (DWEC) framework that combines water and electricity trading to meet the often-conflicting demands of participating countries. The results from the Lancang-Mekong River Basin reveal that substantial benefits in both economic and social aspects can be achieved through coupling regional water and electricity trades. Economic benefits can be obtained by expanding cooperation space and thereby greatly improving the willingness of countries to participate in basin-wide cooperation. Electricity trading plays a key role in loss compensation for water exporters, ensuring no loss for any party and maximizing basin-wide benefits. Furthermore, the DWEC improves regional water use equality, especially in water shortage periods when there is severe competition among water users. The proposed cooperation framework provides a viable way to implement cooperation in transboundary river basins.