How can one compound contain both ionic and covalent bonds?

How can one compound contain both ionic and covalent bonds?