Swim bladder
The swim bladder, gas bladder, fish maw or air bladder is an internal gas-filled organ that contributes to the ability of many bony fish (but not cartilaginous fish) to control their buoyancy, and thus to stay at their current water depth without having to waste energy in swimming. Also, the dorsal position of the swim bladder means the center of mass is below the center of volume, allowing it to act as a stabilizing agent. Additionally, the swim bladder functions as a resonating chamber, to produce or receive sound.
The swim bladder is evolutionarily homologous to the lungs. Charles Darwin remarked upon this in On the Origin of Species.
In the embryonic stages some species, such as redlip blenny, have lost the swim bladder again, mostly bottom dwellers like the weather fish. Other fish like the Opah and the Pomfret use their pectoral fins to swim and balance the weight of the head to keep a horizontal position. The normally bottom dwelling sea robin can use their pectoral fins to produce lift while swimming.