While most fish lay their eggs in water, lungfish are a unique group of fish that can breathe air and survive out of water for extended periods. They lay their eggs in burrows dug in the mud near water, and the young hatch on land.
It's important to note that lungfish don't lay eggs on land in the same way birds do. Their eggs are still laid in a moist environment, and the young develop within those eggs before hatching.