Dolphins are considered sea mammals, as are whales and sea lions.
Sea mammals live full time in the ocean (or in coastal waters such as bays), but have lungs and require surface air to breathe.
Of the sea mammals, dolphins are most like whales, in that they can dive deep and stay underwater for extended periods, thanks to evolutionary changes in the way their bodies process oxygen.
And unlike seals and sea lions, dolphins never venture onto land for more than a few seconds (while chasing down a meal) as they lack the flippers and other structures necessary to propel themselves back into the water.