Goldfish breathe underwater through their gills. They extract oxygen from the water using their gills as they swim. Their gills have thin walls that absorb oxygen from the water and release carbon dioxide. This allows them to extract oxygen from the water and survive underwater.