HONG KONG—A race is under way to unlock one of the world's biggest untapped sources of clean energy—the ocean—with China emerging as an important testing ground.

That could heighten competition with Western companies, especially if Chinese businesses begin using technologies developed with joint-venture partners to expand rapidly.

The European...